This commit is contained in:
mkm 2024-01-21 19:28:52 +08:00
parent f0322b61a0
commit c9d4018c8f

View File

@ -541,7 +541,8 @@ class User extends BaseController
*/
public function qrcode(){
$common= app()->make(Common::class);
$data=$common->Qrcode(['code'=>'shop_'.$this->user->uid,'id'=>$this->user->uid]);
$siteUrl = systemConfig('site_url');
$data=$common->Qrcode(['code'=>$siteUrl.'download/index.html?code=shop_'.$this->user->uid,'id'=>$this->user->uid]);
return app('json')->success(['url'=>$data]);
}
}