Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
yunxin
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
c5196e67
authored
Apr 10, 2019
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
c804081c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/HelperController.php
app/Model/SupplierAccountModel.php
app/Http/Controllers/HelperController.php
View file @
c5196e67
...
...
@@ -37,7 +37,7 @@ class HelperController extends Controller {
//验证注册码的正确与否
private
function
verifyCaptcha
(
$request
)
{
$code
=
$request
->
input
(
"code"
);
if
(
Session
::
get
(
'yunxin_c
ode
'
,
true
)
==
$code
)
{
if
(
Session
::
get
(
'yunxin_c
aptcha
'
,
true
)
==
$code
)
{
//用户输入验证码正确
Export
([
0
,
'success'
]);
}
else
{
...
...
app/Model/SupplierAccountModel.php
View file @
c5196e67
...
...
@@ -156,7 +156,7 @@ class SupplierAccountModel extends Model
public
function
forgetMobileCode
(
$input
){
$mobile
=
$input
[
'mobile'
];
//手机号码
$code
=
$input
[
'code'
];
//图形验证码
if
(
Session
::
get
(
'yunxin_c
ode
'
,
true
)
!=
$code
)
{
if
(
Session
::
get
(
'yunxin_c
aptcha
'
,
true
)
!=
$code
)
{
//用户输入验证码错误
Export
([
1001
,
'验证码输入错误'
]);
}
...
...
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