作者 chencheng

123-cc

@@ -203,7 +203,7 @@ class Wechat extends Api @@ -203,7 +203,7 @@ class Wechat extends Api
203 /* 203 /*
204 3.订单支付 前端请求 204 3.订单支付 前端请求
205 3.1 入库 订单状态 205 3.1 入库 订单状态
206 - 3.2 入库完成 处理支付接口 返回给前端 206 + 3.2 入库完成 处理支付接口 返回给前端 成功下单的接口结构
207 {"code":1,"msg":"下单成功","time":"1685349626","data":{"appId":"wx1c3cc5b4e2006be2","nonceStr":"647464fb20f0c","package":"prepay_id=wx29164027049900e6020fe5bc7628300000","signType":"MD5","paySign":"7EC048B24D643F7115DC0D6063A17E62","timestamp":"1685349627"}} 207 {"code":1,"msg":"下单成功","time":"1685349626","data":{"appId":"wx1c3cc5b4e2006be2","nonceStr":"647464fb20f0c","package":"prepay_id=wx29164027049900e6020fe5bc7628300000","signType":"MD5","paySign":"7EC048B24D643F7115DC0D6063A17E62","timestamp":"1685349627"}}
208 wx.chooseWXPay({ 208 wx.chooseWXPay({
209 timestamp: <?= $config['timestamp'] ?>, 209 timestamp: <?= $config['timestamp'] ?>,
@@ -221,7 +221,7 @@ class Wechat extends Api @@ -221,7 +221,7 @@ class Wechat extends Api
221 */ 221 */
222 public function prepare_order($order_no = ''){ 222 public function prepare_order($order_no = ''){
223 $user_id = $this->auth->id; 223 $user_id = $this->auth->id;
224 - $user_id = 2; 224 + $user_id = 2;//模拟用户
225 if(empty($user_id)){ 225 if(empty($user_id)){
226 return $this->error('用户信息错误'); 226 return $this->error('用户信息错误');
227 } 227 }