|
|
@@ -11,6 +11,7 @@ use biz\merchant\services\MerchantService;
|
|
|
use biz\message\classes\InformAdminClass;
|
|
|
use biz\wx\services\WxOpenService;
|
|
|
use common\components\sms;
|
|
|
+use common\components\util;
|
|
|
use common\components\wxUtil;
|
|
|
use common\services\xhTMessageService;
|
|
|
use Yii;
|
|
|
@@ -36,13 +37,17 @@ 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)
|
|
|
{
|
|
|
$informWay = $data['informWay'];
|
|
|
- $adminShopId = $data['adminShopId'];
|
|
|
+ $adminShopId = isset($data['adminShopId']) ? $data['adminShopId'] : 0;
|
|
|
+ if (empty($adminShopId)) {
|
|
|
+ echo '没有找到门店管理员';
|
|
|
+ util::end();
|
|
|
+ }
|
|
|
$adminShop = AdminShopClass::getById($adminShopId);
|
|
|
$merchantId = $adminShop['merchantId'];
|
|
|
$mobile = $data['mobile'];
|