wanggangzero 8 months ago
parent
commit
43720d12cc

+ 1 - 1
Gameserver/App/service_call/pay/Mo/payRequest.php

@@ -230,7 +230,7 @@ class PayRequest extends loyalsoft\Object_ext {
 //        if ($this->channel == "mi") {
 //            $this->amount = 1;
 //        }
-        if ($this->amount) {
+        if (!self::isTest and $this->amount) {
 //            $this->amount = number_format($this->amount, 2, '.', '');
 //            if ('soft' == $this->channel) {                                     # 2018年1月15号以前固定为1分钱测试
 //                $this->amount = number_format(0.01, 2, '.', '');

+ 1 - 1
Gameserver/App/service_call/pay/official/wxpayv2/pay.php

@@ -40,7 +40,7 @@ if ($req->InserDataBase()) {
     $input->SetBody($req->product_name);                                        # 商品描述,格式: 应用名称-商品WxPayConfig::APPID . "-" .
     $input->SetAttach($req->callbackInfo);                                      # 透传参数
     $input->SetOut_trade_no($req->cpOrderId);                                   # cporderidd
-//    $input->SetTotal_fee($req->amount * 100);                                   # 正式: 总价格,单位:分
+    $input->SetTotal_fee($req->amount * 100);                                   # 正式: 总价格,单位:分
     $input->SetTotal_fee($req->amount); //*100                                     # 测试: 总价格,单位:分
     $input->SetTime_start(date("YmdHis"));                                      # 开始时间
     $input->SetTime_expire(date("YmdHis", time() + 600));                       # 过期时间