作者 王智

文档修改

... ... @@ -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'],
... ...
... ... @@ -648,7 +648,7 @@ class Api
$AccessToken = $accessToken->getToken();
$url = 'https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=' . $AccessToken;
$Json = [
'scene' => 'User_id=' . $UserId,
'scene' => 'Goods_id=0&User_id=' . $UserId,
'path' => $Path,
// 'is_hyaline' => True
];
... ...