...
|
...
|
@@ -121,14 +121,14 @@ class Cards extends Api |
|
|
$UserId = $this->is_token($this->request->header());
|
|
|
$params = $this->request->param();
|
|
|
$UserInfo = Db::name('user')->where('id', $UserId)->find();
|
|
|
// $is_invite_code = '/MiniAppQrCode/' . $UserId . $params['path'] . '.png';
|
|
|
// if (file_exists($is_invite_code) == true) {
|
|
|
// $MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png';
|
|
|
// } else {
|
|
|
// //小程序码
|
|
|
// $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']);
|
|
|
// }
|
|
|
$MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']);
|
|
|
$is_invite_code = './MiniAppQrCode/' . $UserId . $params['path'] . '.png';
|
|
|
if (file_exists($is_invite_code) == true) {
|
|
|
$MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png';
|
|
|
} else {
|
|
|
//小程序码
|
|
|
$MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']);
|
|
|
}
|
|
|
// $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']);
|
|
|
|
|
|
$data = [
|
|
|
'Avatar' => $UserInfo['avatar'],
|
...
|
...
|
|