正在显示
2 个修改的文件
包含
9 行增加
和
9 行删除
@@ -121,14 +121,14 @@ class Cards extends Api | @@ -121,14 +121,14 @@ class Cards extends Api | ||
121 | $UserId = $this->is_token($this->request->header()); | 121 | $UserId = $this->is_token($this->request->header()); |
122 | $params = $this->request->param(); | 122 | $params = $this->request->param(); |
123 | $UserInfo = Db::name('user')->where('id', $UserId)->find(); | 123 | $UserInfo = Db::name('user')->where('id', $UserId)->find(); |
124 | -// $is_invite_code = '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; | ||
125 | -// if (file_exists($is_invite_code) == true) { | ||
126 | -// $MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; | ||
127 | -// } else { | ||
128 | -// //小程序码 | ||
129 | -// $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); | ||
130 | -// } | ||
131 | - $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); | 124 | + $is_invite_code = '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; |
125 | + if (file_exists($is_invite_code) == true) { | ||
126 | + $MiniAppQrcodeUrl = $this->request->domain() . '/MiniAppQrCode/' . $UserId . $params['path'] . '.png'; | ||
127 | + } else { | ||
128 | + //小程序码 | ||
129 | + $MiniAppQrcodeUrl = $this->UserInserMiniAppQrCode($UserId, $params['path']); | ||
130 | + } | ||
131 | +// $MiniAppQrcodeUrl = $this->InserMiniAppQrCode(0, $UserId, $params['path']); | ||
132 | 132 | ||
133 | $data = [ | 133 | $data = [ |
134 | 'Avatar' => $UserInfo['avatar'], | 134 | 'Avatar' => $UserInfo['avatar'], |
@@ -648,7 +648,7 @@ class Api | @@ -648,7 +648,7 @@ class Api | ||
648 | $AccessToken = $accessToken->getToken(); | 648 | $AccessToken = $accessToken->getToken(); |
649 | $url = 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=' . $AccessToken; | 649 | $url = 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=' . $AccessToken; |
650 | $Json = [ | 650 | $Json = [ |
651 | - 'scene' => 'User_id=' . $UserId, | 651 | + 'scene' => 'Goods_id=0&User_id=' . $UserId, |
652 | 'path' => $Path, | 652 | 'path' => $Path, |
653 | // 'is_hyaline' => True | 653 | // 'is_hyaline' => True |
654 | ]; | 654 | ]; |
-
请 注册 或 登录 后发表评论