优化:运营中心 - 商户入驻邀请码生成优化,所有商户邀请码根据类型统一生成,不在每个商户类型单独生成

This commit is contained in:
wuhui_zzw 2024-04-28 11:36:08 +08:00
parent 3e694829cc
commit 9c5a923656
4 changed files with 14 additions and 41 deletions

View File

@ -92,39 +92,9 @@ class AgentRepository extends BaseRepository{
$path = 'pages/agent/invite/index'; $path = 'pages/agent/invite/index';
return app()->make(QrcodeService::class)->createQrCode($valueData,$path); return app()->make(QrcodeService::class)->createQrCode($valueData,$path);
break; break;
case 'wine': case 'merchant':
// 参数长度超过 简写aid=agent_idmt=merchant_type // 参数长度超过 简写aid=agent_idmt=merchant_type
$valueData = 'aid=' . $params['agent_id'].'&mt=3'; $valueData = 'aid=' . $params['agent_id'].'&mt=' . $params['merchant_type'];
$path = 'pages/store/settled/index';
return app()->make(QrcodeService::class)->createQrCode($valueData,$path);
break;
case 'shopMer':
// 参数长度超过 简写aid=agent_idmt=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_idmt=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_idmt=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_idmt=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_idmt=merchant_type
$valueData = 'aid=' . $params['agent_id'].'&mt=7';
$path = 'pages/store/settled/index'; $path = 'pages/store/settled/index';
return app()->make(QrcodeService::class)->createQrCode($valueData,$path); return app()->make(QrcodeService::class)->createQrCode($valueData,$path);
break; break;

View File

@ -43,7 +43,7 @@ class Agent extends BaseController{
*/ */
public function qrCodeInviteSupplier(){ 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); $qrcode = $this->repository->createQrCode($params);
return app('json')->success(['qr_code' => $qrcode]); return app('json')->success(['qr_code' => $qrcode]);

View File

@ -165,15 +165,15 @@ class Auth extends BaseController
'brokerage_price' 'brokerage_price'
]); ]);
$user->append([ $user->append([
'service', // 'service',
'topService', 'topService',
// 'ruleService', 'ruleService',
'shopMerService', // 'shopMerService',
'supermarketService', // 'supermarketService',
'smokeMerService', // 'smokeMerService',
'provinceService', // 'provinceService',
'hallService', // 'hallService',
'HealthService', // 'HealthService',
'total_collect_product', 'total_collect_product',
'total_collect_store', 'total_collect_store',
'total_coupon', 'total_coupon',

View File

@ -44,6 +44,9 @@ class OrderPaySuccessEvent{
}else if($groupOrder->activity_type == 34){ }else if($groupOrder->activity_type == 34){
// 邀请码激活 // 邀请码激活
$this->inviteCodeActivation($groupOrder); $this->inviteCodeActivation($groupOrder);
}else if($groupOrder->activity_type == 35){
// 酒道馆进货订单 暂无处理
}else{ }else{
// 其他订单 // 其他订单
$this->orderPaySuccessHandle($groupOrder); $this->orderPaySuccessHandle($groupOrder);