Merge pull request 'hotfix/discount_1215' (#34) from hotfix/discount_1215 into master

Reviewed-on: http://8.136.139.249:3000/wmtx/sdk/pulls/34
master
廖金灵 3 years ago
commit 434a958e4a

@ -1254,6 +1254,9 @@ class PayH5Controller extends BaseController{
$request['pay_order_number'] = $request['pay_order_number']."_1";
$user_play->where($user_play_map)->save(array('bind_balance' => 0)); // 扣绑定币
$request['price'] = $user_play_data['bind_balance'];
$request['cost'] = $request['price'];
$request['deduction_amount'] = $price - $user_play_data['bind_balance'];
$request['actual_amount'] = $request['price'];
$result = $this->add_spend($request);
// 绑币不记录
// $valueDetailLogModel->addLog($request['user_id'], $request['pay_order_number'], $user_play_data['bind_balance'], -$user_play_data['bind_balance'], 0, $valueDetailLogModel::BANDBI, "绑定币消费:".$user_play_data['pay_amount']);
@ -1268,6 +1271,9 @@ class PayH5Controller extends BaseController{
//$this->set_message(0,"fail", $request['pay_order_number']);
$request['price'] = $real_price;
$request['cost'] = $request['price'];
$request['actual_amount'] = $request['price'];
$request['deduction_amount'] = 0;
$result = $this->add_spend($request);
$this->set_ratio($request['pay_order_number'], 1); // 游戏返利
$notice_order[] = $request['pay_order_number'];

Loading…
Cancel
Save