Commit 501f06fb authored by jianghaiming's avatar jianghaiming

update:Set

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