Commit e466b81c authored by hezhen's avatar hezhen

123

parent ee902b48
...@@ -158,7 +158,7 @@ if ($image){ ...@@ -158,7 +158,7 @@ if ($image){
@$size = filesize(ATTACHMENT_ROOT . $image); @$size = filesize(ATTACHMENT_ROOT . $image);
if ($size < 51220) { if ($size < 51220) {
$path =$path.'?id=' . $goods_id . '&parentUserId=' . $userInfo['platform_userid']; $path ='longbing_company/tab/pages/home/home?c='.$path.'&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 +170,7 @@ if ($image){ ...@@ -170,7 +170,7 @@ if ($image){
} }
} }
} else { } else {
$path =$path.'?id=' . $goods_id . '&parentUserId=' . $userInfo['platform_userid']; $path ='longbing_company/tab/pages/home/home?c='.$path.'&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 +187,7 @@ if ($image2){ ...@@ -187,7 +187,7 @@ if ($image2){
@$size = filesize(ATTACHMENT_ROOT . $image2); @$size = filesize(ATTACHMENT_ROOT . $image2);
if ($size < 51220) { if ($size < 51220) {
$path =$path.'?id=' . $goods_id . '&parentUserId=' . $userInfo['platform_userid']; $path ='longbing_company/tab/pages/home/home?c='.$path.'&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 +199,7 @@ if ($image2){ ...@@ -199,7 +199,7 @@ if ($image2){
} }
} }
} else { } else {
$path =$path.'?id=' . $goods_id . '&parentUserId=' . $userInfo['platform_userid']; $path ='longbing_company/tab/pages/home/home?c='.$path.'&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