Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
verification_code
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
service
verification_code
Commits
63883884
Commit
63883884
authored
Oct 13, 2021
by
shajiaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码 更新
parent
ece89208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ApiSms.php
api/models/ApiSms.php
+5
-1
No files found.
api/models/ApiSms.php
View file @
63883884
...
...
@@ -53,7 +53,7 @@ class ApiSms extends ApiBase
return
[
$code
,
$error
,
$data
];
}
if
(
'86'
!==
$params
[
'country'
]
&&
'LELE'
==
$params
[
'appkey'
])
{
$params
[
'appkey'
]
=
$params
[
'appkey'
]
.
'_EN'
;
$params
[
'appkey'
]
=
$params
[
'appkey'
]
.
'_EN'
;
}
//获取模板相关参数
list
(
$error
,
$content
,
$relatedId
,
$provider
)
=
self
::
getNewTemplates
(
$params
[
'codetype'
],
$params
[
'country'
],
$params
[
'appkey'
]);
...
...
@@ -359,6 +359,10 @@ class ApiSms extends ApiBase
$code
=
Helper
::
getRand
(
4
);
$location
=
$key
;
$result
[
$key
]
=
@
str_replace
(
"FzmRandom4"
,
$code
,
$value
);
}
else
if
(
$value
==
"FzmRandom5"
||
strpos
(
$value
,
"FzmRandom5"
)
!==
false
)
{
$code
=
Helper
::
getRand
(
5
);
$location
=
$key
;
$result
[
$key
]
=
@
str_replace
(
"FzmRandom5"
,
$code
,
$value
);
}
else
if
(
$value
==
"FzmRandom"
||
strpos
(
$value
,
"FzmRandom"
)
!==
false
)
{
$code
=
Helper
::
getRand
();
$location
=
$key
;
...
...
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