|
|
@@ -31,7 +31,7 @@ class SettlementAuto
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function doAutoSett()
|
|
|
+ public function doAutoSett($token = '')
|
|
|
{
|
|
|
$ccmodel = new ComendnoticeModel();
|
|
|
$model = $ccmodel->getNeedSettelent();
|
|
|
@@ -55,7 +55,7 @@ class SettlementAuto
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- $winret = $this->SubmitSettelement('w', ['noticeid' => $model->id, 'token' => $_REQUEST['token']]);
|
|
|
+ $winret = $this->SubmitSettelement('w', ['noticeid' => $model->id, 'token' => $token]);
|
|
|
if ($winret) {
|
|
|
$dataComm = [
|
|
|
'match_id' => $model->match_id,
|
|
|
@@ -64,7 +64,7 @@ class SettlementAuto
|
|
|
'settype' => 2,
|
|
|
'is_manaue' => 0,
|
|
|
'order_ids' => '',
|
|
|
- 'token' => $_REQUEST['token']
|
|
|
+ 'token' => $token
|
|
|
];
|
|
|
if ($mbmm['bet1'] > 0) {
|
|
|
$this->SubmitSettelement('s', array_merge($dataComm, ['bet_type' => 1]));
|