|
@@ -69,7 +69,7 @@ class Info
|
|
|
$wechat = $check['value'];
|
|
|
} else {
|
|
|
$wechat = Dever::load(\Place\Lib\Account::class)->getAppletCode('weixin', 5, $scene, 'pages/main', 'trial');
|
|
|
- if ($wechat) {
|
|
|
+ if ($wechat && !strstr($wechat, 'errcode')) {
|
|
|
$wechat = Dever::load(\Upload\Lib\Save::class)->init(1)->act($wechat, 'png', false, $scene, true);
|
|
|
$wechat = $wechat['url'];
|
|
|
Dever::db('place/qrcode')->insert(['code' => $scene, 'value' => $wechat]);
|