|
|
@ -403,7 +403,8 @@ class User extends Controller |
|
|
|
$scene = "refereeId:" . $user_id; |
|
|
|
$scene = "refereeId:" . $user_id; |
|
|
|
$storeId = request()->header()['storeid']; |
|
|
|
$storeId = request()->header()['storeid']; |
|
|
|
// 下载小程序码 |
|
|
|
// 下载小程序码 |
|
|
|
$page = 'pages/login/index'; |
|
|
|
//$page = 'pages/login/index'; |
|
|
|
|
|
|
|
$page = 'pages/index/index'; |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, $page, 'MP-WEIXIN'); |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, $page, 'MP-WEIXIN'); |
|
|
|
return $this->renderSuccess(str_replace(root_path() . "public/", base_url(), $qrcode)); |
|
|
|
return $this->renderSuccess(str_replace(root_path() . "public/", base_url(), $qrcode)); |
|
|
|
} |
|
|
|
} |
|
|
@ -423,7 +424,7 @@ class User extends Controller |
|
|
|
$user_id = $userInfo = UserService::getCurrentLoginUserId(true); |
|
|
|
$user_id = $userInfo = UserService::getCurrentLoginUserId(true); |
|
|
|
$obj = new \app\common\service\qrcode\BaseQRcode(); |
|
|
|
$obj = new \app\common\service\qrcode\BaseQRcode(); |
|
|
|
$scene = 'refereeId:' . $user_id; |
|
|
|
$scene = 'refereeId:' . $user_id; |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, 'pages/login/index', 'MP-WEIXIN'); |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, 'pages/index/index', 'MP-WEIXIN'); |
|
|
|
return $this->renderSuccess(str_replace(root_path() . "public/", base_url(), $qrcode)); |
|
|
|
return $this->renderSuccess(str_replace(root_path() . "public/", base_url(), $qrcode)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|