|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace www\controllers;
|
|
|
|
|
|
+use biz\admin\services\AdminService;
|
|
|
use biz\saas\classes\ApplyClass;
|
|
|
use biz\saas\services\ApplyService;
|
|
|
use biz\saas\services\RegionService;
|
|
|
@@ -57,6 +58,10 @@ class ApplyController extends BaseController
|
|
|
if (!empty($apply)) {
|
|
|
util::fail('您已经申请过了');
|
|
|
}
|
|
|
+ $admin = AdminService::getByCondition(['platUserId' => $this->userId]);
|
|
|
+ if (!empty($admin)) {
|
|
|
+ util::fail('您已经开店了');
|
|
|
+ }
|
|
|
ApplyClass::addApply($get);
|
|
|
if ($rand == 0) {
|
|
|
$data = ['focus' => 0, 'qrCode' => 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3602624501,870193918&fm=26&gp=0.jpg'];
|