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
2f348ca5
Commit
2f348ca5
authored
Sep 19, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消息内容
parent
b33126f5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
WechatController.class.php
Application/Home/Controller/WechatController.class.php
+4
-4
No files found.
Application/Home/Controller/WechatController.class.php
View file @
2f348ca5
...
...
@@ -30,23 +30,23 @@ class WechatController extends BaseController
$token
=
json_decode
(
$token
,
true
)[
'access_token'
];
$posturl
=
'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token='
.
$token
;
/*
$data = '{
$data
=
'{
"touser":"'
.
$fromUsername
.
'",
"msgtype":"text",
"text":
{
"content":"再见"
}
}';
*/
}'
;
$data
=
'{
/*
$data = '{
"touser":"'.$fromUsername.'",
"msgtype":"image",
"image":
{
"media_id":"88DSz9hHd-7fc_PEZg9NH-O2bl7Jyp0fN-CRuCE0hxbWA3xzLuyUPNb2YxWrSF_2"
}
}'
;
}';
*/
//$data = json_encode($data);
$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