Commit 7ec0d62b authored by jianghaiming's avatar jianghaiming

update:Set

parent 89a205dc
...@@ -20,6 +20,19 @@ use Api\PhpServices\Ksy\Ksyun; ...@@ -20,6 +20,19 @@ use Api\PhpServices\Ksy\Ksyun;
class CommonService class CommonService
{ {
public static function isNewUser($params)
{
$url = config('interface','order.user.is_new_user');
if(empty($url)){
throw new InterfaceException(['cus'=>0]);
}
$res = (new Request())->get($url, $params);
if ($res['code'] == 0 && isset($res['response'])) {
return !empty($res['response']['result']) ? $res['response']['result'] : [];
}
return [];
}
/** /**
* 通过生活号id获取生活号信息 * 通过生活号id获取生活号信息
......
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