Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
1b23b82af6ec3075db7d96055ba7944e74293e21
1 parent
be00a90d
修复app_version获取不到的问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Yuanxiao.php
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Yuanxiao.php
View file @
1b23b82
...
...
@@ -42,7 +42,7 @@ class YuanxiaoController extends HuodongAction
'shareDesc'
=>
'元宵节快乐!一起来YOHO!BUY有货玩2016年潮流开运测试!'
,
'shareImg'
=>
'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png'
,
'shareUrl'
=>
Helpers
::
url
(
'/cuxiao/yuanxiao/index'
),
'playUrl'
=>
$this
->
isApp
()
?
$playUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
.
$playUrlEncode
.
'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'
:
$playUrl
,
'playUrl'
=>
$this
->
isApp
()
?
$playUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'
&
openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
.
$playUrlEncode
.
'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}'
:
$playUrl
,
));
}
...
...
@@ -82,7 +82,7 @@ class YuanxiaoController extends HuodongAction
$this
->
setCookie
(
'yuanxiaochouqian'
,
json_encode
(
$cookieData
),
time
()
+
15
*
60
);
$waitUrl
=
Helpers
::
url
(
'/cuxiao/yuanxiao/wait'
);
$this
->
go
(
$this
->
_isApp
?
$waitUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"}}}'
:
$waitUrl
);
$this
->
go
(
$this
->
_isApp
?
$waitUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'
&
openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"}}}'
:
$waitUrl
);
}
else
{
// 不成功就显示返回的错误信息
...
...
@@ -134,7 +134,7 @@ class YuanxiaoController extends HuodongAction
$this
->
_view
->
display
(
'wait'
,
array
(
'staticTitle'
=>
'2016潮流运势测试'
,
'staticFile'
=>
self
::
STATIC_FILE
,
'activityUrl'
=>
$this
->
_isApp
?
$activityUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"},"share":"'
.
$activityUrl
.
'", shareparam:":{"share_id":"1"}}}'
:
$activityUrl
,
'activityUrl'
=>
$this
->
_isApp
?
$activityUrl
.
'?app_version='
.
$this
->
get
(
'app_version'
)
.
'
&
openby:yohobuy={"action":"go.h5","params":{"islogin":"N","param":{"from":"app"},"share":"'
.
$activityUrl
.
'", shareparam:":{"share_id":"1"}}}'
:
$activityUrl
,
'staticJS'
=>
array
(
'wait.js'
),
...
...
Please
register
or
login
to post a comment