Commit 50172c97 authored by jianghaiming's avatar jianghaiming

update:起手登陆

parent a4899e40
...@@ -25,5 +25,6 @@ class UserException extends BaseException ...@@ -25,5 +25,6 @@ class UserException extends BaseException
11 => '头像昵称更新失败', 11 => '头像昵称更新失败',
12 => '绑定手机号保存失败', 12 => '绑定手机号保存失败',
13 => '请求太频繁,稍后重试', 13 => '请求太频繁,稍后重试',
14 => '手机号格式错误',
]; ];
} }
\ No newline at end of file
...@@ -33,6 +33,21 @@ class CommonService ...@@ -33,6 +33,21 @@ class CommonService
} }
return []; return [];
} }
public static function activateDeliverer($params)
{
$url = config('interface','order.deliverer.activate_deliverer');
if(empty($url)){
throw new InterfaceException(['cus'=>0]);
}
$res = (new Request())->post($url, $params);
if ($res['code'] == 0 && isset($res['response'])) {
return !empty($res['response']['result']) ? $res['response']['result'] : [];
}
return [];
}
/** /**
* 通过生活号id获取生活号信息 * 通过生活号id获取生活号信息
......
This diff is collapsed.
...@@ -22,6 +22,10 @@ wechat.appid = "wx4e0d92499185fb74"; ...@@ -22,6 +22,10 @@ wechat.appid = "wx4e0d92499185fb74";
wechat.secret = "731bcf2f7ebb1ebddb677618c2008b25"; wechat.secret = "731bcf2f7ebb1ebddb677618c2008b25";
deliverer.wechat.appid = "wx91042f2a75f8b994";
deliverer.wechat.secret = "09d7ea5472d871b4b1a0f3100bdfe1c9";
[exception] [exception]
debug = false debug = false
exception.user.code = -1 exception.user.code = -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment