From c0fce78ec38465d2929d6cdbf7254e455c6e67cc Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 27 May 2020 14:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=B5=E6=89=A3=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Api/GameApi.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Application/Common/Api/GameApi.class.php b/Application/Common/Api/GameApi.class.php index e2584ef09..db49090d7 100644 --- a/Application/Common/Api/GameApi.class.php +++ b/Application/Common/Api/GameApi.class.php @@ -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(