wanggangzero 8 mesiacov pred
rodič
commit
acc8a29e0a

+ 1 - 2
Gameserver/App/service_call/pay/official/alipay/pay.php

@@ -32,8 +32,7 @@ $bizcontent = "{\"body\":\"" . $req->product_name . "\","
         . "\"subject\": \"龙游科技\","
         . "\"out_trade_no\": \"" . $req->cpOrderId . "\","
         . "\"timeout_express\": \"30m\","
-        . "\"total_amount\": \"" . $req->amount . "\","                         # 正式: 这里单位是元, 注意检查
-//        . "\"total_amount\": \"" . $req->amount / 100 . "\","                   # 测试: 这里单位是元, 注意检查
+        . "\"total_amount\": \"" . $req->amount . "\","                         # 这里单位是元, 注意检查
         . "\"product_code\":\"QUICK_MSECURITY_PAY\","
         . "\"passback_params\":\"" . $req->callbackInfo . "\""                  # 透传参数
         . "}";

+ 2 - 3
Gameserver/App/service_call/pay/official/wxpayv2/pay.php

@@ -40,11 +40,10 @@ 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));                       # 过期时间
-    $input->SetGoods_tag("test");                                               # 活动标记,不管
+    $input->SetGoods_tag("test");                                               # 活动标记, 不管
     $input->SetNotify_url($req->notifyUrl);                                     # 支付回调地址
     $input->SetTrade_type("APP");                                               # 交易类型,
 //    $input->SetTrade_type("JSAPI");