|
@@ -313,19 +313,18 @@ class BetService extends BaseService
|
|
|
* @param {*} $memberId
|
|
|
* @return {*}
|
|
|
*/
|
|
|
- public static function recentlyRecord($memberId ,$page = 1 ,$limit = 10)
|
|
|
+ public static function recentlyRecord($memberId ,$page = 1 ,$limit = 5)
|
|
|
{
|
|
|
$list = self::model()::where('member_id',$memberId)->whereIn('status',[self::model()::STATUS_STAY,self::model()::STATUS_SETTLED])->orderBy('id','desc')->forPage($page, $limit)->get();
|
|
|
|
|
|
- // $text = "```\n";
|
|
|
- $text = "";
|
|
|
- $text .= " 内容 盈亏 \n";
|
|
|
+ $text = "```\n";
|
|
|
+ $text .= "内容 盈亏 \n";
|
|
|
foreach($list->toArray() as $k => $v){
|
|
|
// $text .= $v['issue_no']." ".$v['keywords']." ".$v['amount']." ".$v['profit']."\n";
|
|
|
$item = $v['keywords'].rtrim(rtrim(number_format($v['amount'], 2, '.', ''), '0'), '.')." ".rtrim(rtrim(number_format($v['profit'], 2, '.', ''), '0'), '.')."\n";
|
|
|
$text .= $item;
|
|
|
}
|
|
|
- // $text .= "```\n";
|
|
|
+ $text .= "```\n";
|
|
|
|
|
|
return $text;
|
|
|
}
|