|
|
@@ -38,14 +38,14 @@ class SettlementAuto
|
|
|
if (empty($model)) {
|
|
|
return 0;
|
|
|
}
|
|
|
- Common::SET_NOMAM_RECORD('开始自动结算! ', ['id' => $model->id, 'match_id' => $model->match_id]);
|
|
|
+ Common::SET_NOMAM_RECORD('开始自动结算! ', ['id' => $model->id, 'match_id' => $model->match_id, 'game_code' => $model->game_code]);
|
|
|
|
|
|
$model->pcount = 1;
|
|
|
$model->start_time = date('Y-m-d H:i:s', time());
|
|
|
$model->status = 1;
|
|
|
$model->save();
|
|
|
|
|
|
- $mbmm = (new MoneyBuyMatchModel())->countByMatch($model->match_id,$model->game_code);
|
|
|
+ $mbmm = (new MoneyBuyMatchModel())->countByMatch($model->match_id, $model->game_code);
|
|
|
$count = $mbmm['count'];
|
|
|
if (!$count) {
|
|
|
$model->status = 4;
|
|
|
@@ -94,7 +94,11 @@ class SettlementAuto
|
|
|
Common::SET_NOMAM_RECORD('自动结算返回: ', ['type' => $type, 'req' => $datas, 'rt' => $retarr]);
|
|
|
if (isset($retarr['status']) && $retarr['status'] == 1) {
|
|
|
return true;
|
|
|
+ } else {
|
|
|
+ Common::SET_NOMAM_RECORD('自动结算返回-1-Error: ', ['type' => $type, 'req' => $datas, 'ret' => $ret]);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ Common::SET_NOMAM_RECORD('自动结算返回-2-Error: ', ['type' => $type, 'req' => $datas, 'ret' => $ret]);
|
|
|
}
|
|
|
return false;
|
|
|
}
|