Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
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
冯超鹏
laravelzh
Commits
e1c42c72
Commit
e1c42c72
authored
Dec 22, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短息发送添加log
parent
2570627a
Pipeline
#243
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ZehongTcpController.php
app/Http/Controllers/Auth/ZehongTcpController.php
+2
-0
UserController.php
app/Http/Controllers/UserController.php
+2
-2
No files found.
app/Http/Controllers/Auth/ZehongTcpController.php
View file @
e1c42c72
...
...
@@ -11,6 +11,7 @@ use App\Http\Controllers\DevicesController;
use
Illuminate\Support\Facades\Config
;
use
App\Http\Controllers\Auth\SwooleCommandMeTcpController
;
use
App\Http\Controllers\SmsailiyunController
;
use
Illuminate\Support\Facades\Log
;
class
ZehongTcpController
extends
Controller
{
...
...
@@ -122,6 +123,7 @@ class ZehongTcpController extends Controller
$code
=
json_encode
(
$sms
->
sendSms
(),
true
);
if
(
$code
[
'Message'
]
==
'OK'
&&
$code
[
'Code'
]
==
'OK'
)
{
Redis
::
set
(
$data
[
'id'
],
$code
);
Log
::
channel
(
'slack'
)
->
info
(
'短信发送 =>'
.
$code
.
'设备号=>'
.
$data
[
'id'
]);
}
}
}
...
...
app/Http/Controllers/UserController.php
View file @
e1c42c72
...
...
@@ -566,7 +566,7 @@ class UserController extends Controller
public
function
textcountuser
(
Request
$request
)
{
// https://dysmsapi.aliyuncs.com?
//
$sms = new SmsailiyunController();
//
print_r(json_encode($sms->sendSms(),true));
$sms
=
new
SmsailiyunController
();
print_r
(
json_encode
(
$sms
->
sendSms
(),
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