Commit da99f83c authored by hezhen's avatar hezhen

修改

parent 7e80ebd0
...@@ -208,6 +208,7 @@ if ($info['qr_path']) { ...@@ -208,6 +208,7 @@ if ($info['qr_path']) {
if (51220 < $size) { if (51220 < $size) {
$image = $this->transImage($info['qr_path']); $image = $this->transImage($info['qr_path']);
$data['qr'] = $image; $data['qr'] = $image;
$path='';
} }
else { else {
load()->func('file'); load()->func('file');
...@@ -274,6 +275,7 @@ if (!strstr($image, 'ttps://')) { ...@@ -274,6 +275,7 @@ if (!strstr($image, 'ttps://')) {
} }
$data['qr'] = $image; $data['qr'] = $image;
$data['path'] = $path;
$data['share_img'] = ''; $data['share_img'] = '';
if (file_exists(ATTACHMENT_ROOT . '/' . ('images/longbing_company/' . $_W['uniacid'] . '/share-' . $to_uid . '.png'))) { if (file_exists(ATTACHMENT_ROOT . '/' . ('images/longbing_company/' . $_W['uniacid'] . '/share-' . $to_uid . '.png'))) {
......
...@@ -27,11 +27,11 @@ if (isset($_GPC['page'])) { ...@@ -27,11 +27,11 @@ if (isset($_GPC['page'])) {
$list_img = array(); $list_img = array();
if ($type) { if ($type) {
$list_img = pdo_getslice('longbing_company_poster', array('uniacid' => $uniacid, 'status' => 1, 'type_id' => $type), $limit, $count, array('id', 'title', 'img', 'top', 'type_id', 'cover'), '', array('top desc', 'id desc')); $list_img = pdo_getslice('longbing_company_poster', array('uniacid' => $uniacid, 'status' => 1, 'type_id' => $type), $limit, $count, array('id', 'title', 'img', 'top', 'type_id','update_time', 'cover'), '', array('top desc', 'id desc'));
} }
else { else {
if ($type == 0) { if ($type == 0) {
$list_img = pdo_getslice('longbing_company_poster', array('uniacid' => $uniacid, 'status' => 1), $limit, $count, array('id', 'title', 'img', 'top', 'type_id', 'cover'), '', array('top desc', 'id desc')); $list_img = pdo_getslice('longbing_company_poster', array('uniacid' => $uniacid, 'status' => 1), $limit, $count, array('id', 'title', 'img', 'top', 'type_id', 'update_time','cover'), '', array('top desc', 'id desc'));
} }
} }
...@@ -82,13 +82,13 @@ if ($user_info) { ...@@ -82,13 +82,13 @@ if ($user_info) {
$user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2; $user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2;
} }
else { else {
$path = 'longbing_company/pages/index/index?to_uid=' . $uid . '&currentTabBar=toCard&is_qr=1'; $path = 'longbing_company/pages/index/index?to_uid=' . $uid . '&currentTabBar=toShop&is_qr=1';
$res = $this->createQr($image, $path); $res = $this->createQr($image, $path);
$user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2; $user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2;
} }
} }
else { else {
$path = 'longbing_company/pages/index/index?to_uid=' . $uid . '&currentTabBar=toCard&is_qr=1'; $path = 'longbing_company/pages/index/index?to_uid=' . $uid . '&currentTabBar=toShop&is_qr=1';
$res = $this->createQr($image, $path); $res = $this->createQr($image, $path);
$user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2; $user['qr_path'] = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $destination_folder2;
$user['qr_path2'] = 0; $user['qr_path2'] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment