Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bfcb42ff
authored
Dec 23, 2022
by
SUDPTDUBLXEROFX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
钉钉消息通知
parent
32486097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
app/Http/Controllers/HomeController.php
app/helpers.php
app/Http/Controllers/HomeController.php
View file @
bfcb42ff
...
...
@@ -28,13 +28,12 @@ class HomeController extends Controller
{
// $data = [
// 'name'=>rand(100,100000),
// '
inquiry
_sn'=>rand(100,100000),
// '
order
_sn'=>rand(100,100000),
// ];
// $res = SendMsg($data,'semour_
inquire',['13713025362
']);
// $res = SendMsg($data,'semour_
order',['13713025362','578953158@qq.com
']);
// print_r($res);
// die();
return
view
(
'home.home'
);
}
...
...
app/helpers.php
View file @
bfcb42ff
...
...
@@ -43,11 +43,13 @@ function SendMsg($data=[], $key = '', $ToUser = 'INNER_PERSON'){
# $check['data'] ="{\"goods_name\":\"MPVZ5004GW7U\",\"brand_name\":\"恩智浦牌\\/NXP牌\",\"goods_title\":\"多元件集成电路\",\"material_sn\":\"WL2021060300070421\",\"tax_rate_low\":\"0.7000\",\"tax_rate_land\":\"0.0000\",\"tax_rate_added\":\"13.0000\",\"supervision_con\":\"\",\"number\":\"8542391000\"}";
$check
[
'pf'
]
=
1
;
$check
[
'keyword'
]
=
$key
;
$check
[
'is_ignore'
]
=
0
;
$check
[
'is_ignore'
]
=
1
;
$check
[
'k1'
]
=
time
();
$check
[
'k2'
]
=
MD5
(
MD5
(
$check
[
'k1'
])
.
"fh6y5t4rr351d2c3bryi"
);
$response
=
Http
::
asForm
()
->
post
(
"http://api.ichunt.com/msg/sendMessageByAuto"
,
$check
);
print_r
(
$response
->
body
());
die
();
$res
=
json_decode
(
$response
->
body
(),
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