Authored by xuqi

Merge remote-tracking branch 'origin/hotfix/couponAppversion'

@@ -65,6 +65,7 @@ class CouponController extends AbstractAction @@ -65,6 +65,7 @@ class CouponController extends AbstractAction
65 $receiveData = filter_input_array(INPUT_GET, array( 65 $receiveData = filter_input_array(INPUT_GET, array(
66 'couponID' => FILTER_DEFAULT, 66 'couponID' => FILTER_DEFAULT,
67 'code' => FILTER_DEFAULT, 67 'code' => FILTER_DEFAULT,
  68 + 'app_version' => FILTER_DEFAULT
68 )); 69 ));
69 // 跳转 URl 70 // 跳转 URl
70 $playUrl = Helpers::url('/coupon/floor'); 71 $playUrl = Helpers::url('/coupon/floor');
@@ -86,7 +87,7 @@ class CouponController extends AbstractAction @@ -86,7 +87,7 @@ class CouponController extends AbstractAction
86 $returnData['url'] = Helpers::url('/signin.html', array('refer' => $playUrl), 'default'); 87 $returnData['url'] = Helpers::url('/signin.html', array('refer' => $playUrl), 'default');
87 } else { 88 } else {
88 $returnData['isApp'] = true; 89 $returnData['isApp'] = true;
89 - $playUrlEncode = strtr($playUrl . '?code=' . $receiveData['code'], array('/' => '\\/')); 90 + $playUrlEncode = strtr($playUrl . '?code=' . $receiveData['code'] .'&app_version=' . $receiveData['app_version'], array('/' => '\\/'));
90 $returnData['url'] = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'; 91 $returnData['url'] = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
91 // $playUrlEncode = strtr($playUrl, array('/' => '\\/')); 92 // $playUrlEncode = strtr($playUrl, array('/' => '\\/'));
92 // $returnData['url'] = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app","code":"' . $receiveData['code'] . '"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'; 93 // $returnData['url'] = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app","code":"' . $receiveData['code'] . '"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';