|
|
|
@ -258,7 +258,7 @@ class BaseController extends Controller {
|
|
|
|
|
$before = $userInfo['balance'];
|
|
|
|
|
$after = $before + $d['pay_amount'];
|
|
|
|
|
$valueDetailLogModel = new \Sdk\Model\ValueDetailLogModel();
|
|
|
|
|
$valueDetailLogModel->addLog($d['user_id'], $data['trade_no'], $before, $d['pay_amount'], $after, $valueDetailLogModel::BALANCE, "平台币抵扣".$d['pay_amount']);
|
|
|
|
|
$valueDetailLogModel->addLog($d['user_id'], $data['trade_no'], $before, $d['pay_amount'], $after, $valueDetailLogModel::BALANCE, "平台币充值".$d['pay_amount'], 2);
|
|
|
|
|
|
|
|
|
|
$user->where("id=".$d['user_id'])->setInc("balance",$d['pay_amount']);
|
|
|
|
|
$user->where("id=".$d['user_id'])->setInc("cumulative",$d['pay_amount']);
|
|
|
|
|