Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
fa78adf0
Commit
fa78adf0
authored
Jun 08, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码
parent
24a50f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/app/Http/Controllers/ToolController.php
src/app/Http/Controllers/ToolController.php
+5
-5
No files found.
src/app/Http/Controllers/ToolController.php
View file @
fa78adf0
...
...
@@ -42,9 +42,9 @@ class ToolController extends Controller
return
$this
->
jsonReturn
(
4003
,
"当天手机发送短信达上限"
);
}
$authcode
=
$this
->
genAuthCode
(
6
);
//
$authcode = $this->genAuthCode(6);
//
$authcode = 666666;
$authcode
=
666666
;
Cache
::
put
(
"sms_auth_code:"
.
$mobile
,
$authcode
,
$expireSeconds
);
Cache
::
put
(
"sms:limit_mobile:"
.
$mobile
,
1
,
60
);
...
...
@@ -53,9 +53,9 @@ class ToolController extends Controller
Cache
::
put
(
"sms:limit_mobile_daily:"
.
$mobile
.
":"
.
$todayDate
,
$mobileDayLimit
+
1
,
3600
*
24
);
$aliyunsms
=
new
Aliyunsms
();
$ret
=
$aliyunsms
->
send
(
$mobile
,
$authcode
);
//
$ret = 1;
//$aliyunsms = new Aliyunsms();
//
$ret = $aliyunsms->send($mobile, $authcode);
$ret
=
1
;
if
(
$ret
==
1
)
{
return
$this
->
jsonReturn
(
0
,
"验证码发送成功"
);
}
else
{
...
...
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