Commit 61b4bcc6 authored by hezhen's avatar hezhen

123

parent e466b81c
...@@ -130,7 +130,6 @@ global $_W; ...@@ -130,7 +130,6 @@ global $_W;
$uniacid = $_W['uniacid']; $uniacid = $_W['uniacid'];
$to_uid = $_GPC['user_id']; $to_uid = $_GPC['user_id'];
$goods_id = $_GPC['id']; $goods_id = $_GPC['id'];
$path = $_GPC['path'];
//1:旅游,2租车,3营地 //1:旅游,2租车,3营地
$type = $_GPC['type']; $type = $_GPC['type'];
$userInfo=pdo_get('longbing_company_user',array('id'=>$to_uid,'uniacid'=>$_W['uniacid'])); $userInfo=pdo_get('longbing_company_user',array('id'=>$to_uid,'uniacid'=>$_W['uniacid']));
...@@ -158,7 +157,7 @@ if ($image){ ...@@ -158,7 +157,7 @@ if ($image){
@$size = filesize(ATTACHMENT_ROOT . $image); @$size = filesize(ATTACHMENT_ROOT . $image);
if ($size < 51220) { if ($size < 51220) {
$path ='longbing_company/tab/pages/home/home?c='.$path.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid; $path ='longbing_company/tab/pages/home/home?c='.$type.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid;
$res = createQr2(ATTACHMENT_ROOT . $image, $path, $_W); $res = createQr2(ATTACHMENT_ROOT . $image, $path, $_W);
if (is_array($res) && isset($res['errcode'])) { if (is_array($res) && isset($res['errcode'])) {
$appid = $_W['account']['key']; $appid = $_W['account']['key'];
...@@ -170,7 +169,7 @@ if ($image){ ...@@ -170,7 +169,7 @@ if ($image){
} }
} }
} else { } else {
$path ='longbing_company/tab/pages/home/home?c='.$path.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid; $path ='longbing_company/tab/pages/home/home?c='.$type.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid;
$res = createQr2(ATTACHMENT_ROOT . $image, $path, $_W); $res = createQr2(ATTACHMENT_ROOT . $image, $path, $_W);
if (is_array($res) && isset($res['errcode'])) { if (is_array($res) && isset($res['errcode'])) {
$appid = $_W['account']['key']; $appid = $_W['account']['key'];
...@@ -187,7 +186,7 @@ if ($image2){ ...@@ -187,7 +186,7 @@ if ($image2){
@$size = filesize(ATTACHMENT_ROOT . $image2); @$size = filesize(ATTACHMENT_ROOT . $image2);
if ($size < 51220) { if ($size < 51220) {
$path ='longbing_company/tab/pages/home/home?c='.$path.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid; $path ='longbing_company/tab/pages/home/home?c='.$type.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid;
$res = createQr2(ATTACHMENT_ROOT . $image2, $path, $_W); $res = createQr2(ATTACHMENT_ROOT . $image2, $path, $_W);
if (is_array($res) && isset($res['errcode'])) { if (is_array($res) && isset($res['errcode'])) {
$appid = $_W['account']['key']; $appid = $_W['account']['key'];
...@@ -199,7 +198,7 @@ if ($image2){ ...@@ -199,7 +198,7 @@ if ($image2){
} }
} }
} else { } else {
$path ='longbing_company/tab/pages/home/home?c='.$path.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid; $path ='longbing_company/tab/pages/home/home?c='.$type.'&id=' . $goods_id . '&pid=' . $userInfo['platform_userid'].'&to_uid='.$to_uid;
$res = createQr2(ATTACHMENT_ROOT . $image2, $path, $_W); $res = createQr2(ATTACHMENT_ROOT . $image2, $path, $_W);
if (is_array($res) && isset($res['errcode'])) { if (is_array($res) && isset($res['errcode'])) {
$appid = $_W['account']['key']; $appid = $_W['account']['key'];
......
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