|
|
@@ -197,6 +197,10 @@ class MerchantService extends BaseService
|
|
|
default:
|
|
|
$merchantName = '花卉宝';
|
|
|
}
|
|
|
+ $merchant = MerchantClass::getByCondition(['merchantName' => $merchantName]);
|
|
|
+ if (!empty($merchant)) {
|
|
|
+ util::stop('已初始平台要使用的商家信息');
|
|
|
+ }
|
|
|
$data = [
|
|
|
'merchantName' => $merchantName,
|
|
|
'mobile' => '15280215347',
|
|
|
@@ -210,5 +214,5 @@ class MerchantService extends BaseService
|
|
|
];
|
|
|
return MerchantClass::generateMerchant($data);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|