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
1eb27d4f
Commit
1eb27d4f
authored
Dec 26, 2019
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
f1dda8d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
IndexController.class.php
Application/Frontend/Controller/IndexController.class.php
+14
-14
No files found.
Application/Frontend/Controller/IndexController.class.php
View file @
1eb27d4f
...
...
@@ -20,20 +20,20 @@ class IndexController extends Controller
//生成图片
public
function
get_pic
(){
session_start
();
//
if (!$_SESSION["headimgurl"]) {
//
redirect('http://mallapp.guoguodz.com/test_h5/appwww/index.php/WxAuthorize');
//
return;
//
}
//
if($_SERVER['QUERY_STRING']){
//
$url = '?'.$_SERVER['QUERY_STRING'];
//
}
//
$link = 'http://'.$_SERVER["HTTP_HOST"].'/test_h5/appwww/index.php'.$url;
//
//
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
//
$nonceStr = "";
//
for ($i = 0; $i < 16; $i++) {
//
$nonceStr .= substr($chars, mt_rand(0, strlen($chars) - 1), 1);
//
}
if
(
!
$_SESSION
[
"headimgurl"
])
{
redirect
(
'http://mallapp.guoguodz.com/test_h5/appwww/index.php/WxAuthorize'
);
return
;
}
if
(
$_SERVER
[
'QUERY_STRING'
]){
$url
=
'?'
.
$_SERVER
[
'QUERY_STRING'
];
}
$link
=
'http://'
.
$_SERVER
[
"HTTP_HOST"
]
.
'/test_h5/appwww/index.php'
.
$url
;
$chars
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
;
$nonceStr
=
""
;
for
(
$i
=
0
;
$i
<
16
;
$i
++
)
{
$nonceStr
.=
substr
(
$chars
,
mt_rand
(
0
,
strlen
(
$chars
)
-
1
),
1
);
}
$weChatApi
=
WechatWebApi
::
getInstance
();
$wxToken
=
S
(
'wx_token'
);
if
(
!
$wxToken
)
{
...
...
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