Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
Project
Project
Details
Activity
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
llewan
ylc.llewan.com
Commits
0eff8e59
Commit
0eff8e59
authored
Sep 19, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息推送
parent
65cb92f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
WechatController.class.php
Application/Home/Controller/WechatController.class.php
+5
-5
No files found.
Application/Home/Controller/WechatController.class.php
View file @
0eff8e59
...
@@ -30,23 +30,23 @@ class WechatController extends BaseController
...
@@ -30,23 +30,23 @@ class WechatController extends BaseController
$token
=
json_decode
(
$token
,
true
)[
'access_token'
];
$token
=
json_decode
(
$token
,
true
)[
'access_token'
];
$posturl
=
'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token='
.
$token
;
$posturl
=
'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token='
.
$token
;
$data
=
'{
/*
$data = '{
"touser":"'.$fromUsername.'",
"touser":"'.$fromUsername.'",
"msgtype":"text",
"msgtype":"text",
"text":
"text":
{
{
"content":"再见"
"content":"再见"
}
}
}'
;
}';
*/
/*
$data = '{
$data
=
'{
"touser":"'
.
$fromUsername
.
'",
"touser":"'
.
$fromUsername
.
'",
"msgtype":"image",
"msgtype":"image",
"image":
"image":
{
{
"media_id":"
88DSz9hHd-7fc_PEZg9NH-O2bl7Jyp0fN-CRuCE0hxbWA3xzLuyUPNb2YxWrSF_2
"
"media_id":"
AsEriSNkp4IZ6vUowg8bViVijbgvqOfbh6N_5r4B_9NLITJOAplkEWVjsz9r3LIp
"
}
}
}';
*/
}'
;
//$data = json_encode($data);
//$data = json_encode($data);
$re
=
$this
->
curlPost
(
$posturl
,
$data
,
true
);
$re
=
$this
->
curlPost
(
$posturl
,
$data
,
true
);
...
...
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