...
|
...
|
@@ -604,8 +604,7 @@ class User extends Base |
|
|
|
|
|
// 用户小程序码
|
|
|
$qrcode = $dir.'/qrcode_'.$user['id'].'.png';
|
|
|
$img = imagecreatefromjpeg(ROOT_PATH.'public/'.$qrcode);
|
|
|
if(!file_exists($qrcode) || imagesx($img) != 211){
|
|
|
if(!file_exists($qrcode) || imagesx(imagecreatefromjpeg(ROOT_PATH.'public/'.$qrcode)) != 211){
|
|
|
$wechat = new Wechat('wxMiniProgram');
|
|
|
$response = $wechat->getApp()->app_code->getUnlimit($user['id'], [
|
|
|
'page' => 'pages/vip/vip',
|
...
|
...
|
|