|
|
@@ -37,7 +37,7 @@ class InformAdminService extends BaseService
|
|
|
InformAdminClass::addInform($params, $adminShop, $type, $TMList);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//消费通知内容 shish 2020.1.1
|
|
|
//['messageType'=>'inform','informWay'=>'miniProgram','userType'=>'admin','adminShopId'=>913,'mobile'=>'15280215347','tMessage'=>'','content'=>'','briefContent'=>'','isOpen'=>1]
|
|
|
public static function consumeInformQueue($data)
|
|
|
@@ -50,6 +50,7 @@ class InformAdminService extends BaseService
|
|
|
}
|
|
|
$adminShop = AdminShopClass::getById($adminShopId);
|
|
|
$merchantId = $adminShop['merchantId'];
|
|
|
+ $adminId = $adminShop['adminId'];
|
|
|
$mobile = $data['mobile'];
|
|
|
$isOpen = isset($data['isOpen']) ? $data['isOpen'] : 0;
|
|
|
if ($isOpen == 1) {
|
|
|
@@ -77,12 +78,11 @@ class InformAdminService extends BaseService
|
|
|
$hasSend = 1;
|
|
|
$noticeWay = 0;
|
|
|
} else {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
//存入数据库
|
|
|
$informData = [
|
|
|
- 'userId' => $admin['userId'],
|
|
|
- 'adminId' => $id,
|
|
|
+ 'adminId' => $adminId,
|
|
|
'merchantId' => $merchantId,
|
|
|
'noticeType' => 0,
|
|
|
'content' => $data['briefContent'],
|
|
|
@@ -96,5 +96,5 @@ class InformAdminService extends BaseService
|
|
|
InformAdminClass::addData($informData);
|
|
|
return true;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|