Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
maf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
94b3d267
authored
Jan 15, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
b2a91238
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Application/Home/Controller/IndexController.class.php
+1
-1
Application/Home/View/default/layout.tpl
+8
-2
No files found.
Application/Home/Controller/IndexController.class.php
View file @
94b3d267
...
...
@@ -31,7 +31,7 @@ class IndexController extends Controller
$this
->
request_auth
(
$this
->
get_url
());
return
;
}
$this
->
assign
(
'
headimgurl'
);
$this
->
assign
(
'
src'
,
$_GET
[
'ADTAG'
]
);
$this
->
assign
(
'user_header_url'
,
$user
[
'headimgurl'
]);
$this
->
assign
(
'nickname'
,
$user
[
'nickname'
]);
}
...
...
Application/Home/View/default/layout.tpl
View file @
94b3d267
...
...
@@ -101,14 +101,20 @@
window
.
getImageUrl
=
location
.
origin
+
'/Index/getImage'
;
window
.
user_header_url
=
'{:$user_header_url|default:""}'
;
window
.
nickname
=
'{:$nickname|default:""}'
;
window
.
src
=
'{:$src|default:""}'
;
var
link
=
location
.
origin
;
var
param
=
''
;
if
(
window
.
src
!=
''
)
{
param
=
'?ADTAG='
+
window
.
src
;
}
var
friend_title
=
'没想到在迪拜旅行,我竟然会遇到……'
;
var
friend_desc
=
'点击你的奇遇,旅行大奖也在等你'
;
var
timeline_desc
=
'点击你的奇遇,旅行大奖也在等你'
;
window
.
wxFriendData
=
{
'link'
:
link
,
'link'
:
link
+
param
,
'imgUrl'
:
link
+
'/Public/static/image2/share.jpg'
,
'title'
:
friend_title
,
'desc'
:
friend_desc
,
...
...
@@ -117,7 +123,7 @@
}
};
window
.
wxTimelineData
=
{
'link'
:
link
,
'link'
:
link
+
param
,
'imgUrl'
:
link
+
'/Public/static/image2/share.jpg'
,
'title'
:
timeline_desc
,
success
:
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment