|
|
|
@ -82,13 +82,15 @@ class TransferMerchantController extends ThinkController
|
|
|
|
|
$idinfo = $this->TransferMerchant->field("id,ways")->where("id = {$id}")->find();
|
|
|
|
|
$idsave = [
|
|
|
|
|
'id'=>$id,
|
|
|
|
|
'ways'=>$idinfo['ways']-0+$ways
|
|
|
|
|
'ways'=>$idinfo['ways']-0+$ways,
|
|
|
|
|
'update_time'=>time()
|
|
|
|
|
];
|
|
|
|
|
$this->TransferMerchant->save($idsave);
|
|
|
|
|
//修改之前的
|
|
|
|
|
$infosave = [
|
|
|
|
|
'id'=>$info['id'],
|
|
|
|
|
'ways'=>$info['ways']-$ways
|
|
|
|
|
'ways'=>$info['ways']-$ways,
|
|
|
|
|
'update_time'=>time()
|
|
|
|
|
];
|
|
|
|
|
$this->TransferMerchant->save($infosave);
|
|
|
|
|
}
|
|
|
|
|