修复二维码获取失败,封面不显示的bug
This commit is contained in:
@@ -331,15 +331,18 @@ class table_pichome_resources extends dzz_table
|
||||
$hascoverrids[] = $v['rid'];
|
||||
}
|
||||
$rids = array_diff($rids, $hascoverrids);
|
||||
foreach (DB::fetch_all("select * from %t where rid in(%n)", array('thumb_record', $rids)) as $v) {
|
||||
if ($v['rid']) $return[$v['rid']]['imgstatus'] = 1;
|
||||
if ($v['sstatus']) {
|
||||
$return[$v['rid']]['icondata'] =IO::getFileUri($v['spath']);
|
||||
} else $return[$v['rid']]['icondata'] = false;
|
||||
if ($v['lstatus']) {
|
||||
$return[$v['rid']]['originalimg'] =IO::getFileUri($v['lpath']);
|
||||
} else $return[$v['rid']]['originalimg'] = false;
|
||||
if(!empty($rids)){
|
||||
foreach (DB::fetch_all("select * from %t where rid in(%n)", array('thumb_record', $rids)) as $v) {
|
||||
if ($v['rid']) $return[$v['rid']]['imgstatus'] = 1;
|
||||
if ($v['sstatus']) {
|
||||
$return[$v['rid']]['icondata'] =IO::getFileUri($v['spath']);
|
||||
} else $return[$v['rid']]['icondata'] = false;
|
||||
if ($v['lstatus']) {
|
||||
$return[$v['rid']]['originalimg'] =IO::getFileUri($v['lpath']);
|
||||
} else $return[$v['rid']]['originalimg'] = false;
|
||||
}
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1031,7 +1031,7 @@ where r.isdelete = 0 and r.appid = %s order by r.dateline desc ", ['pichome_reso
|
||||
$appid = isset($_GET['appid']) ? trim($_GET['appid']) : '';
|
||||
$url = 'index.php?mod=pichome&op=fileview#appid=' . $appid;
|
||||
$sid = 'vapp_'.$appid;
|
||||
$qrcode = C::t('pichome_route')->getQRcodeBySid($url, $appid);
|
||||
$qrcode = C::t('pichome_route')->getQRcodeBySid($url, $sid);
|
||||
exit(json_encode(['success' => true, 'qrcode' => $qrcode]));
|
||||
} else {
|
||||
$theme = GetThemeColor();
|
||||
|
||||
Reference in New Issue
Block a user