diff --git a/app/Services/CommonUtilsService.php b/app/Services/CommonUtilsService.php index eb9b087..317dc37 100644 --- a/app/Services/CommonUtilsService.php +++ b/app/Services/CommonUtilsService.php @@ -956,7 +956,9 @@ class CommonUtilsService $object->merchant_id = ConsultAccount::where('id', $object->consult_account_id)->value('merchant_id'); } $text = '您推荐的用户已成功下单'; - $url = env('APP_URL') . '/api/official/live/wechat/FamilyAuth?merchant_id=' . $object->merchant_id . '&url=https%3A%2F%2Flove.ufutx.com%2Fpu%2F%23%2FmyRecommend'; + $url = env('APP_URL') . "/pu/#/myRecommend"; + $url = urlencode($url); + $url = env('APP_URL') . '/api/official/live/wechat/FamilyAuth?merchant_id=' . $object->merchant_id . '&url=' . $url; } // 渠道分享 if ($type == 'channel') { @@ -964,7 +966,9 @@ class CommonUtilsService $mobile = substr_replace($mobile, '****', 3, 4); } $text = '有用户通过你分享的渠道二维码下单了'; - $url = env('APP_URL') . '/api/official/live/wechat/FamilyAuth?merchant_id=' . $object->merchant_id . '&url=https%3A%2F%2Flove.ufutx.com%2Fpu%2F%23%2FmyRecommend'; + $url = env('APP_URL') . "/pu/#/myRecommend"; + $url = urlencode($url); + $url = env('APP_URL') . '/api/official/live/wechat/FamilyAuth?merchant_id=' . $object->merchant_id . '&url=' . $url; } $param['touser'] = $merchant_openid; $param['template_id'] = config('wechat.tpls.customer_place_order');