|
|
@@ -64,6 +64,9 @@ class ShopAdminService extends BaseService
|
|
|
if (empty($admin)) {
|
|
|
util::fail('没有找到管理员信息');
|
|
|
}
|
|
|
+ if (isset($admin['subscribe']) == false || $admin['subscribe'] != 1) {
|
|
|
+ util::fail("请关注公众号({$admin['id']})");
|
|
|
+ }
|
|
|
$roleId = $bindData['roleId'];
|
|
|
$remind = isset($bindData['remind']) ? $bindData['remind'] : 0;
|
|
|
$status = isset($bindData['status']) ? $bindData['status'] : 0;
|
|
|
@@ -78,6 +81,8 @@ class ShopAdminService extends BaseService
|
|
|
'remind' => $remind,
|
|
|
'status' => $status,
|
|
|
'merchantId' => $merchantId,
|
|
|
+ 'adminName' => $adminName,
|
|
|
+ 'mobile' => $mobile,
|
|
|
];
|
|
|
ShopAdminClass::delBindAdminData($shopId, $recommendAdminId);
|
|
|
return ShopAdminClass::add($addData);
|