|
@@ -13,6 +13,7 @@ use App\Modules\User\Services\QappUserService;
|
|
|
use App\Modules\User\Services\ReadRecordService;
|
|
|
use App\Modules\User\Services\UserService;
|
|
|
use App\Modules\User\Services\UserSignService;
|
|
|
+use Exception;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Redis;
|
|
|
|
|
@@ -175,12 +176,12 @@ class UserController extends BaseController
|
|
|
try {
|
|
|
Redis::del('quser_code:' . $phone);
|
|
|
$result = QappUserService::bindPhoneStatic($this->uid, $phone);
|
|
|
- if (!$result) {
|
|
|
- return response()->error('WAP_BIND_PHONE_EXIST');
|
|
|
- } else {
|
|
|
+ if ($result) {
|
|
|
return response()->success();
|
|
|
+ } else {
|
|
|
+ return response()->error('WAP_BIND_PHONE_EXIST');
|
|
|
}
|
|
|
- } catch (\Exception $e) {
|
|
|
+ } catch (Exception $e) {
|
|
|
return response()->error();
|
|
|
}
|
|
|
} else {
|