Merge branch 'hotfix/deduction_pay' of wmtx/platform into master

抵扣通知
master
张谷诚 5 years ago committed by Gogs
commit 09223cb99c

@ -42,6 +42,10 @@ class GameApi {
if(empty($game_data)){ $this->error_record("未找到指定游戏数据"); return false;}
if(empty($game_data['pay_notify_url'])){$this->error_record("未设置游戏支付通知地址"); return false;}
// 通知 抵扣的情况
if (isset($pay_data['deduction_amount']) && $pay_data['deduction_amount'] > 0) {
$pay_data['cost'] += $pay_data['deduction_amount'];
}
$md5_sign = md5($pay_data['pay_order_number'].$pay_data['cost']."1".$pay_data['extend'].$game_data['game_key']);
$data = array(

Loading…
Cancel
Save