xiaogang 3 anos atrás
pai
commit
f55af8415d

+ 1 - 1
app/Http/Controllers/Api/UserController.php

xqd
@@ -595,7 +595,7 @@ class UserController extends Controller
 //        if(isset($request->user_id)){
 //
 //        }
-        $url = "https://".$_SERVER['HTTP_HOST'].'/h5/reg.html?invoce='.$user->ycode;
+        $url = "https://".$_SERVER['HTTP_HOST'].'/web/register.html?invoce='.$user->ycode;
         $res['appid'] = env("WEIXIN_OPEN_APPID");
         $res['url'] = $url;
 

+ 1 - 1
app/Services/UserService.php

xqd
@@ -157,7 +157,7 @@ class UserService
     public function invite_info(){
         $user = auth('api')->user();
         $res['ycode'] = $user->ycode;
-        $res['code_url'] = "https://".$_SERVER['HTTP_HOST'].'/h5/reg.html?invoce='.$user->ycode;
+        $res['code_url'] = "https://".$_SERVER['HTTP_HOST'].'/web/register.html?invoce='.$user->ycode;
         //总邀请用户
         $res['total_user'] =User::query()->where(['pid'=>$user->id])->count();
         //待领取天数