diff --git a/app/common/repositories/marketing/AgentRepository.php b/app/common/repositories/marketing/AgentRepository.php index ff0acdb..1830ddd 100644 --- a/app/common/repositories/marketing/AgentRepository.php +++ b/app/common/repositories/marketing/AgentRepository.php @@ -92,39 +92,9 @@ class AgentRepository extends BaseRepository{ $path = 'pages/agent/invite/index'; return app()->make(QrcodeService::class)->createQrCode($valueData,$path); break; - case 'wine': + case 'merchant': // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=3'; - $path = 'pages/store/settled/index'; - return app()->make(QrcodeService::class)->createQrCode($valueData,$path); - break; - case 'shopMer': - // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=1'; - $path = 'pages/store/settled/index'; - return app()->make(QrcodeService::class)->createQrCode($valueData,$path); - break; - case 'mer': - // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=0'; - $path = 'pages/store/settled/index'; - return app()->make(QrcodeService::class)->createQrCode($valueData,$path); - break; - case 'supermarket': - // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=4'; - $path = 'pages/store/settled/index'; - return app()->make(QrcodeService::class)->createQrCode($valueData,$path); - break; - case 'hall': - // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=6'; - $path = 'pages/store/settled/index'; - return app()->make(QrcodeService::class)->createQrCode($valueData,$path); - break; - case 'health': - // 参数长度超过 简写:aid=agent_id;mt=merchant_type - $valueData = 'aid=' . $params['agent_id'].'&mt=7'; + $valueData = 'aid=' . $params['agent_id'].'&mt=' . $params['merchant_type']; $path = 'pages/store/settled/index'; return app()->make(QrcodeService::class)->createQrCode($valueData,$path); break; diff --git a/app/controller/api/Agent.php b/app/controller/api/Agent.php index 9b6dc15..4414b68 100644 --- a/app/controller/api/Agent.php +++ b/app/controller/api/Agent.php @@ -43,7 +43,7 @@ class Agent extends BaseController{ */ public function qrCodeInviteSupplier(){ // 参数获取 - $params = $this->request->params(['agent_id','type','level']); + $params = $this->request->params(['agent_id','type','level','merchant_type']); $qrcode = $this->repository->createQrCode($params); return app('json')->success(['qr_code' => $qrcode]); diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index f16aa04..e2394f0 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -165,15 +165,15 @@ class Auth extends BaseController 'brokerage_price' ]); $user->append([ - 'service', + // 'service', 'topService', - // 'ruleService', - 'shopMerService', - 'supermarketService', - 'smokeMerService', - 'provinceService', - 'hallService', - 'HealthService', + 'ruleService', + // 'shopMerService', + // 'supermarketService', + // 'smokeMerService', + // 'provinceService', + // 'hallService', + // 'HealthService', 'total_collect_product', 'total_collect_store', 'total_coupon', diff --git a/app/listener/exchangeQuota/OrderPaySuccessEvent.php b/app/listener/exchangeQuota/OrderPaySuccessEvent.php index 94d7f30..2b0a553 100644 --- a/app/listener/exchangeQuota/OrderPaySuccessEvent.php +++ b/app/listener/exchangeQuota/OrderPaySuccessEvent.php @@ -44,6 +44,9 @@ class OrderPaySuccessEvent{ }else if($groupOrder->activity_type == 34){ // 邀请码激活 $this->inviteCodeActivation($groupOrder); + }else if($groupOrder->activity_type == 35){ + // 酒道馆进货订单 暂无处理 + }else{ // 其他订单 $this->orderPaySuccessHandle($groupOrder);