|
@@ -49,8 +49,8 @@ class webpay implements IPay
|
|
$input->SetTime_start(date("YmdHis")); //订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则
|
|
$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->SetTime_expire(date("YmdHis", time() + 600));//订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则
|
|
$input->SetNotify_url(self::wx_notifyurl);
|
|
$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());
|
|
$input->SetSpbill_create_ip(util::real_ip());
|
|
|
|
|
|
$order = WxPayApi::unifiedOrder($input);
|
|
$order = WxPayApi::unifiedOrder($input);
|