|
@@ -196,6 +196,7 @@ class Wechat extends Api |
|
@@ -196,6 +196,7 @@ class Wechat extends Api |
196
|
$this->error($e->getMessage());
|
196
|
$this->error($e->getMessage());
|
197
|
}
|
197
|
}
|
198
|
if($user_id !=0){
|
198
|
if($user_id !=0){
|
|
|
199
|
+
|
199
|
$data['token'] = $this->auth->getToken();
|
200
|
$data['token'] = $this->auth->getToken();
|
200
|
$data['user_info'] = $user;
|
201
|
$data['user_info'] = $user;
|
201
|
$this->success('完成',$data);
|
202
|
$this->success('完成',$data);
|
|
@@ -206,6 +207,7 @@ class Wechat extends Api |
|
@@ -206,6 +207,7 @@ class Wechat extends Api |
206
|
}
|
207
|
}
|
207
|
|
208
|
|
208
|
|
209
|
|
|
|
210
|
+
|
209
|
/**注册 分销关系 如 https://coupon.xp.yn.cn?store_id=1&activity_id=3&share_id=2
|
211
|
/**注册 分销关系 如 https://coupon.xp.yn.cn?store_id=1&activity_id=3&share_id=2
|
210
|
* store_id,activity_id
|
212
|
* store_id,activity_id
|
211
|
* 关系 user表 id 和 pid
|
213
|
* 关系 user表 id 和 pid
|
|
@@ -239,6 +241,7 @@ class Wechat extends Api |
|
@@ -239,6 +241,7 @@ class Wechat extends Api |
239
|
|
241
|
|
240
|
|
242
|
|
241
|
|
243
|
|
|
|
244
|
+
|
242
|
/*
|
245
|
/*
|
243
|
3.订单支付 前端请求
|
246
|
3.订单支付 前端请求
|
244
|
3.1 入库 订单状态
|
247
|
3.1 入库 订单状态
|
|
@@ -256,11 +259,11 @@ class Wechat extends Api |
|
@@ -256,11 +259,11 @@ class Wechat extends Api |
256
|
});
|
259
|
});
|
257
|
3.3 回调修改订单状态
|
260
|
3.3 回调修改订单状态
|
258
|
|
261
|
|
259
|
-
|
262
|
+
|
260
|
*/
|
263
|
*/
|
261
|
public function prepare_order($order_no = ''){
|
264
|
public function prepare_order($order_no = ''){
|
262
|
$user_id = $this->auth->id;
|
265
|
$user_id = $this->auth->id;
|
263
|
-
|
266
|
+
|
264
|
if(empty($user_id)){
|
267
|
if(empty($user_id)){
|
265
|
return $this->error('用户信息错误');
|
268
|
return $this->error('用户信息错误');
|
266
|
}
|
269
|
}
|