作者 chencheng

123-cc

@@ -204,6 +204,7 @@ class Wechat extends Api @@ -204,6 +204,7 @@ class Wechat extends Api
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 wx.chooseWXPay({ 208 wx.chooseWXPay({
208 timestamp: <?= $config['timestamp'] ?>, 209 timestamp: <?= $config['timestamp'] ?>,
209 nonceStr: '<?= $config['nonceStr'] ?>', 210 nonceStr: '<?= $config['nonceStr'] ?>',
@@ -215,6 +216,8 @@ class Wechat extends Api @@ -215,6 +216,8 @@ class Wechat extends Api
215 } 216 }
216 }); 217 });
217 3.3 回调修改订单状态 218 3.3 回调修改订单状态
  219 +
  220 +
218 */ 221 */
219 public function prepare_order($order_no = ''){ 222 public function prepare_order($order_no = ''){
220 $user_id = $this->auth->id; 223 $user_id = $this->auth->id;