Parcourir la source

wx h5 pay update

ayHaru il y a 4 ans
Parent
commit
19a2f0a56a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      helper/pay/webpay.php

+ 2 - 2
helper/pay/webpay.php

@@ -49,8 +49,8 @@ class webpay implements IPay
         $input->SetTime_start(date("YmdHis")); //订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则
         $input->SetTime_expire(date("YmdHis", time() + 600));//订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则
         $input->SetNotify_url(self::wx_notifyurl);
-        $input->SetScene_info(self::wx_notifyurl);
-        $input->SetTrade_type('{"h5_info": {"type":"Wap","wap_url": "https://www.xyzshops.cn","wap_name": "椰子商城"}}');
+        $input->SetScene_info('{"h5_info": {"type":"Wap","wap_url": "https://www.xyzshops.cn","wap_name": "椰子商城"}}');
+        $input->SetTrade_type("MWEB");
         $input->SetSpbill_create_ip(util::real_ip());
 
         $order = WxPayApi::unifiedOrder($input);