Commit db3a37bc authored by hezhen's avatar hezhen

123

parent 26f4f459
...@@ -129,12 +129,11 @@ global $_GPC; ...@@ -129,12 +129,11 @@ global $_GPC;
global $_W; global $_W;
$uniacid = $_W['uniacid']; $uniacid = $_W['uniacid'];
$to_uid = $_GPC['user_id']; $to_uid = $_GPC['user_id'];
$goods_id = $_GPC['goodsId']; $goods_id = $_GPC['id'];
$path = $_GPC['path']; $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']));
$destination_folder = '/images' . ('/longbing_company/' . $_W['uniacid']); $destination_folder = '/images' . ('/longbing_company/' . $_W['uniacid']);
if ($userInfo&&$userInfo['platform_userid']){ if ($userInfo&&$userInfo['platform_userid']){
$image = $destination_folder . '/' . $_W['uniacid'] . '-goods'.$type.'-' . $goods_id . '-' . $to_uid . 'qr.png'; $image = $destination_folder . '/' . $_W['uniacid'] . '-goods'.$type.'-' . $goods_id . '-' . $to_uid . 'qr.png';
...@@ -143,12 +142,11 @@ if ($userInfo&&$userInfo['platform_userid']){ ...@@ -143,12 +142,11 @@ if ($userInfo&&$userInfo['platform_userid']){
$image2 = $destination_folder . '/' . $_W['uniacid'] . '-goods'.$type.'-' . $goods_id . 'qr.png'; $image2 = $destination_folder . '/' . $_W['uniacid'] . '-goods'.$type.'-' . $goods_id . 'qr.png';
$url = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $image2; $url = $_W['siteroot'] . $_W['config']['upload']['attachdir'] . '/' . $image2;
} }
$url = str_replace('ttp://', 'ttps://', $url);
if (!strstr($url, 'ttps://')) { if (!strstr($url, 'ttps://')) {
$url = 'https://' . $url; $url = 'https://' . $url;
} }
$url = str_replace('ttp://', 'ttps://', $url);
echo json_encode(array('errno' => 0, 'message' => '', 'data' => $url ), JSON_UNESCAPED_UNICODE); echo json_encode(array('errno' => 0, 'message' => '', 'data' => $url ), JSON_UNESCAPED_UNICODE);
if (function_exists('fastcgi_finish_request')) { if (function_exists('fastcgi_finish_request')) {
......
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