Commit 501f06fb authored by jianghaiming's avatar jianghaiming

update:Set

parent aefc7479
......@@ -18,6 +18,7 @@ use Api\PhpServices\ShopImage\QR;
use App\Exception\custom\InterfaceException;
use App\Services\goods\GoodsService;
use Api\PhpUtils\Http\Request;
use App\Exception\BaseException;
class DistributorService
{
......@@ -182,9 +183,9 @@ class DistributorService
if (empty($smsCode)) {
throw new DistributorException(['cus'=>11]);
}
if (!self::checkSmsCode($params)) {
throw new DistributorException(['cus'=>17]);
$sms = self::checkSmsCode($params);
if ($sms['code'] != 0) {
throw new BaseException(['code'=>$sms['code'],'msg' => $sms['reason']]);
}
$jwUserId = '';
......@@ -323,7 +324,7 @@ class DistributorService
}
if (!empty($sms) && $sms['code'] == 0) {
return $sms;
return $sms['response'];
}else{
return $sms;
}
......
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