|
@@ -404,27 +404,27 @@ class User extends BaseModel
|
|
|
//$data = ['nick_name'=>$nickname,'mobile'=>$mobile,'shop_id'=>$shopsId,'role'=>$role,"store"=>getStoreId()];
|
|
|
try {
|
|
|
//需要在名厨数据库加用户
|
|
|
- $postData = [
|
|
|
- 'mobile' => $mobile,
|
|
|
- 'openid' => "",
|
|
|
- 'source' => 12
|
|
|
- ];
|
|
|
- $res = curl_post(config('chef.serv_cookhome').'/api/wx/third_platform_register', $postData);
|
|
|
- if ($res == false){
|
|
|
- Log::error($mobile.'系统繁忙');
|
|
|
- return false;
|
|
|
- }
|
|
|
- $res = json_decode($res, true);
|
|
|
- // 获取名厨用户id
|
|
|
- if (!isset($res['id']) || !$res['id']){
|
|
|
- Log::error($mobile.'系统繁忙');
|
|
|
- return false;
|
|
|
- }
|
|
|
- $chef_user_id = $res['id'];
|
|
|
+// $postData = [
|
|
|
+// 'mobile' => $mobile,
|
|
|
+// 'openid' => "",
|
|
|
+// 'source' => 12
|
|
|
+// ];
|
|
|
+// $res = curl_post(config('chef.serv_cookhome').'/api/wx/third_platform_register', $postData);
|
|
|
+// if ($res == false){
|
|
|
+// Log::error($mobile.'系统繁忙');
|
|
|
+// return false;
|
|
|
+// }
|
|
|
+// $res = json_decode($res, true);
|
|
|
+// // 获取名厨用户id
|
|
|
+// if (!isset($res['id']) || !$res['id']){
|
|
|
+// Log::error($mobile.'系统繁忙');
|
|
|
+// return false;
|
|
|
+// }
|
|
|
+ //$chef_user_id = $res['id'];
|
|
|
|
|
|
Log::error(__METHOD__.',role ---:'.$role);
|
|
|
|
|
|
- $user->user_id = $chef_user_id;
|
|
|
+ //$user->user_id = $chef_user_id;
|
|
|
$user->nick_name = $nickname;
|
|
|
$user->mobile = $mobile;
|
|
|
$user->shop_id = $shopsId;
|