|
|
@@ -73,9 +73,9 @@ class ApplyService extends BaseService
|
|
|
$apply['adminName'] = $admin['adminName'] ?? '';
|
|
|
return MerchantClass::generateSj($apply);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//申请开店 shish 2021.01.28
|
|
|
- public static function addApply($data)
|
|
|
+ public static function addNewApply($data)
|
|
|
{
|
|
|
$style = $data['style'] ?? 0;
|
|
|
if (in_array($style, [MerchantClass::STYLE_RETAIL, MerchantClass::STYLE_SUPPLIER]) == false) {
|
|
|
@@ -89,10 +89,10 @@ class ApplyService extends BaseService
|
|
|
util::fail('请填写正确手机号');
|
|
|
}
|
|
|
//查询客户提交的证件
|
|
|
- $certType = $data['certType'] ?? ApplyExtendClass::CERT_TYPE_LICENSE;
|
|
|
- $extend = ApplyExtendClass::getByCondition(['certType' => $certType, 'mobile' => $mobile]);
|
|
|
+ $certType = $data['certType'] ?? ApplyClass::CERT_TYPE_LICENSE;
|
|
|
+ $extend = ApplyClass::getByCondition(['certType' => $certType, 'mobile' => $mobile]);
|
|
|
if (!empty($extend)) {
|
|
|
- util::fail('此客户已存在');
|
|
|
+ util::fail('已申请过了');
|
|
|
}
|
|
|
$adminId = $data['adminId'] ?? 0;
|
|
|
$from = $data['from'] ?? 0;
|