添加本地商家入驻审核通知到管理员
This commit is contained in:
parent
e78569ac4d
commit
1fdb1f2a7f
@ -3,6 +3,7 @@
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\common\basics\Api;
|
||||
use app\common\enum\NoticeEnum;
|
||||
use app\common\model\user\User;
|
||||
use app\common\server\JsonServer;
|
||||
use app\common\server\WeChatServer;
|
||||
@ -56,7 +57,15 @@ class LocalStore extends Api
|
||||
if($data['lstore_id'] != 0){
|
||||
$data['store_state'] = 0;
|
||||
$result = Db::name("local_store")->where("lstore_id",$data['lstore_id'])->save($data);
|
||||
if($result){
|
||||
if($data['empowerPhone']){
|
||||
event('Notice', [
|
||||
'scene' => NoticeEnum::LOCAL_SHOP_SETTLED_NOTICE,
|
||||
'mobile' => $result,
|
||||
'params' => [
|
||||
'user_id' => $this->user_id,
|
||||
'shopName' => $data['shopName'],
|
||||
]
|
||||
]);
|
||||
return JsonServer::success('上传成功');
|
||||
}else{
|
||||
return JsonServer::error('上传失败');
|
||||
|
||||
@ -68,6 +68,7 @@ class NoticeEnum
|
||||
const AFTER_SALE_NOTICE_SHOP = 201;//会员发起售后退款通知商家
|
||||
const AFTER_SALE_NOTICE_SHOP_REFUND = 202;//会员发起退款通知
|
||||
const LOCAL_SHOP_COLLECTION_NOTICE = 203;//本地商家收款通知
|
||||
const LOCAL_SHOP_SETTLED_NOTICE = 204;//本地商家入驻审核通知
|
||||
|
||||
//通知平台
|
||||
const SHOP_APPLY_NOTICE_PLATFORM = 300; //商家入驻通知
|
||||
@ -149,7 +150,8 @@ class NoticeEnum
|
||||
'SJSQTZPT' => self::SHOP_APPLY_NOTICE_PLATFORM, //商家申请通知平台
|
||||
'SJTXTZPT' => self::SHOP_WITHDRAWAL_NOTICE_PLATFORM, //商家提现通知平台
|
||||
|
||||
'BDSJSKTZ' => self::LOCAL_SHOP_COLLECTION_NOTICE //本地商家收款通知
|
||||
'BDSJSKTZ' => self::LOCAL_SHOP_COLLECTION_NOTICE, //本地商家收款通知,
|
||||
'BDSJRZSHTZ' => self::LOCAL_SHOP_SETTLED_NOTICE //本地商家入驻审核通知
|
||||
];
|
||||
|
||||
|
||||
@ -186,6 +188,7 @@ class NoticeEnum
|
||||
self::SHOP_APPLY_NOTICE_PLATFORM => '商家入驻通知',
|
||||
self::SHOP_WITHDRAWAL_NOTICE_PLATFORM => '商家提现通知',
|
||||
self::LOCAL_SHOP_COLLECTION_NOTICE => '本地商家收款通知',
|
||||
self::LOCAL_SHOP_SETTLED_NOTICE => '本地商家入驻通知',
|
||||
|
||||
//商家
|
||||
self::USER_PAID_NOTICE_SHOP => '订单通知',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user