Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
test_h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
章建武
test_h5
Commits
bb566301
Commit
bb566301
authored
Dec 26, 2019
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
46b2b441
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
IndexController.class.php
Application/Frontend/Controller/IndexController.class.php
+7
-7
No files found.
Application/Frontend/Controller/IndexController.class.php
View file @
bb566301
...
...
@@ -12,6 +12,13 @@ class IndexController extends Controller
}
public
function
index
()
{
$this
->
display
(
'index'
);
}
//生成图片
public
function
get_pic
(){
session_start
();
if
(
!
$_SESSION
[
"headimgurl"
])
{
redirect
(
'http://mallapp.guoguodz.com/test_h5/appwww/index.php/WxAuthorize'
);
...
...
@@ -57,13 +64,6 @@ class IndexController extends Controller
$string
=
"jsapi_ticket="
.
$argu
[
'jsapi_ticket'
]
.
"&noncestr="
.
$argu
[
'nonceStr'
]
.
"×tamp="
.
$argu
[
'timestamp'
]
.
"&url="
.
$argu
[
'url'
];
$argu
[
'signature'
]
=
sha1
(
trim
(
$string
));
$this
->
assign
(
$argu
);
$this
->
display
(
'index'
);
}
//生成图片
public
function
get_pic
(){
session_start
();
$num
=
$_SESSION
[
'num'
]
+=
1
;
$link
=
C
(
'DOMAIN'
)
.
STATIC_COMEON_ASSETS
.
'/images/zhutu.jpg'
;
//主图
...
...
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