|
|
@@ -8,7 +8,6 @@ use bizGhs\admin\classes\AdminClass;
|
|
|
use bizHd\saas\classes\ApplyClass;
|
|
|
use bizHd\saas\services\ApplyService;
|
|
|
use common\components\dict;
|
|
|
-use common\components\noticeUtil;
|
|
|
use common\components\stringUtil;
|
|
|
use common\components\util;
|
|
|
use yii\console\Controller;
|
|
|
@@ -72,29 +71,24 @@ CUSTOM;
|
|
|
$post['name'] = $shopName;
|
|
|
$post['mobile'] = $mobile;
|
|
|
if (empty($shopName)) {
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,名称没有填写", '15280215347');
|
|
|
$transaction->rollBack();
|
|
|
util::stop('1');
|
|
|
}
|
|
|
if (stringUtil::isMobile($mobile) == false) {
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,手机号填写错误", '15280215347');
|
|
|
$transaction->rollBack();
|
|
|
util::stop('2');
|
|
|
}
|
|
|
if (stringUtil::getWordNum($shopName) > 8) {
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,名称超过了8个汉字", '15280215347');
|
|
|
$transaction->rollBack();
|
|
|
util::stop('3');
|
|
|
}
|
|
|
$has = ApplyClass::getByCondition(['mobile' => $mobile]);
|
|
|
if (!empty($has)) {
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,手机号已经存在了哦", '15280215347');
|
|
|
$transaction->rollBack();
|
|
|
util::stop('4');
|
|
|
}
|
|
|
$hasShop = ShopClass::getByCondition(['mobile' => $mobile]);
|
|
|
if (!empty($hasShop)) {
|
|
|
- noticeUtil::push("花店 {$shopName} 手机号 {$mobile} 添加失败,手机号已经存在了", '15280215347');
|
|
|
$transaction->rollBack();
|
|
|
util::stop('5');
|
|
|
}
|