Authored by 郭成尧

APP去掉code

... ... @@ -48,7 +48,9 @@ $receive.on('click', function() {
var msg = data.msg,
status = data.status,
newUrl = data.url + '?code=' + getUrlParam('code');
if (data.isApp === true) {
newUrl = data.url;
}
if (data.noLogin === true) {
if ($('#intimacy-link').length <= 0) {
$('body').append('<a href=\'' + newUrl + '\' style="display:none;" id="intimacy-link">' +
... ...
... ... @@ -85,6 +85,7 @@ class CouponController extends AbstractAction
if (!$this->isApp()) {
$returnData['url'] = Helpers::url('/signin.html', array('refer' => $playUrl), 'default');
} else {
$returnData['isApp'] = true;
$playUrlEncode = strtr($playUrl . '?code=' . $receiveData['code'], array('/' => '\\/'));
$returnData['url'] = $playUrl . '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' . $playUrlEncode . '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
// $playUrlEncode = strtr($playUrl, array('/' => '\\/'));
... ...