|
@@ -380,6 +380,8 @@ class BetService extends BaseService
|
|
|
$list = self::findAll(['issue_no' => $issue_no ,'status' => self::model()::STATUS_STAY]);
|
|
|
|
|
|
$data = [];
|
|
|
+ $text = $issue_no."期开奖结果 \n";
|
|
|
+ $text .= "-----本期开奖账单----- \n";
|
|
|
|
|
|
foreach($list->toArray() as $k => $v){
|
|
|
$item = [];
|
|
@@ -389,7 +391,7 @@ class BetService extends BaseService
|
|
|
if(in_array($v['keywords'],$awards)){
|
|
|
$profit = $v['amount'] * $v['odds'];
|
|
|
$item['profit'] = $profit;
|
|
|
-
|
|
|
+ $text .= "私聊下注 【******】 {$profit}\n";
|
|
|
// 结算
|
|
|
WalletService::updateBalance($v['member_id'],$profit);
|
|
|
|
|
@@ -397,6 +399,8 @@ class BetService extends BaseService
|
|
|
$balance = $walletInfo['available_balance'];
|
|
|
|
|
|
BalanceLogService::addLog($v['member_id'],$profit,$balance,($balance+$profit),'中奖',$v['id'],'');
|
|
|
+ }else{
|
|
|
+ $text .= "私聊下注 【******】 -{$v['amount']}\n";
|
|
|
}
|
|
|
|
|
|
self::model()::where('id',$v['id'])->update($item);
|