|
|
@ -276,6 +276,7 @@ class User extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->renderSuccess('提交成功,请耐心等待'); |
|
|
|
return $this->renderSuccess('提交成功,请耐心等待'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//订单开票 |
|
|
|
//订单开票 |
|
|
|
public function invoicingDel(): Json |
|
|
|
public function invoicingDel(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
@ -376,9 +377,13 @@ class User extends Controller |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 生成会员码 |
|
|
|
* 生成会员码 |
|
|
|
* [getMembershipInviteQrcode description] |
|
|
|
* [getMembershipInviteQrcode description] |
|
|
|
* @return [type] [description] |
|
|
|
* @return Json [type] [description] |
|
|
|
|
|
|
|
* @throws BaseException |
|
|
|
|
|
|
|
* @throws DataNotFoundException |
|
|
|
|
|
|
|
* @throws DbException |
|
|
|
|
|
|
|
* @throws ModelNotFoundException |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getMembershipInviteQrcode() |
|
|
|
public function getMembershipInviteQrcode(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$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(); |
|
|
@ -394,15 +399,19 @@ class User extends Controller |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 生成分销商码 |
|
|
|
* 生成分销商码 |
|
|
|
* [getDealerInviteQrcode description] |
|
|
|
* [getDealerInviteQrcode description] |
|
|
|
* @return [type] [description] |
|
|
|
* @return Json [type] [description] |
|
|
|
|
|
|
|
* @throws BaseException |
|
|
|
|
|
|
|
* @throws DataNotFoundException |
|
|
|
|
|
|
|
* @throws DbException |
|
|
|
|
|
|
|
* @throws ModelNotFoundException |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getDealerInviteQrcode() |
|
|
|
public function getDealerInviteQrcode(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$storeId = request()->header()['storeid']; |
|
|
|
$storeId = request()->header()['storeid']; |
|
|
|
$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 = 'uid:' . $user_id; |
|
|
|
$scene = 'refereeId:' . $user_id; |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, null, 'MP-WEIXIN'); |
|
|
|
$qrcode = $obj->getQrcode((int)$storeId, $scene, 'pages/login/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)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|