Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
stock_new
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
1
Merge Requests
1
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
sugar
stock_new
Commits
f7c9f6f9
Commit
f7c9f6f9
authored
Jun 20, 2024
by
董先生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
持仓列表
parent
4098f95a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
application/apicom/home/User.php
application/apicom/home/User.php
+10
-10
application/apicom/home/ZthySms.php
application/apicom/home/ZthySms.php
+1
-2
No files found.
application/apicom/home/User.php
View file @
f7c9f6f9
...
...
@@ -165,34 +165,34 @@ class User extends Common
public
function
sendsms
()
{
$mobile
=
input
(
'mobile'
);
$phonecode
=
input
(
'phonecode'
);
//
$phonecode = input('phonecode');
$data
[
'mobile'
]
=
$mobile
;
$data
[
'captcha'
]
=
$phonecode
;
$result
=
$this
->
validate
(
$data
,
'Member.reg'
);
//
$data['captcha'] = $phonecode;
/*
$result = $this->validate($data, 'Member.reg');
if(true !== $result){
// 验证失败 输出错误信息
ajaxmsg($result,0);
}
$tp
=
'code'
;
$tp = 'code';
*/
$ret
=
MemberModel
::
getMemberInfoByMobile
(
$mobile
);
if
(
!
empty
(
$ret
))
ajaxmsg
(
'该手机已经注册会员,请更换手机!'
,
0
);
if
(
input
(
'captcha'
)){
/*
if(input('captcha')){
$captcha = ['captcha'=>input('captcha'), 'mobile'=>$mobile];
// 验证码
$result = $this->validate($captcha, 'Member.captcha');
if(true !== $result){
ajaxmsg($result,0);
};
}
if
(
!
check_sms_code
(
$mobile
)){
}
*/
/*
if(!check_sms_code($mobile)){
ajaxmsg('请间隔60秒再获取验证码!',0);
}
}
*/
// $res = send_sms($mobile, $template);
$content
=
\think\Config
::
get
(
'sms_template'
)[
'register'
];
$content
=
str_replace
(
array
(
"#var#"
),
array
(
$mobile
),
$content
);
//
$content = \think\Config::get('sms_template')['register'];
//
$content = str_replace(array("#var#"),array($mobile), $content);
// $res = sendsms_mandao($mobile,$content,$tp);
$zthysms
=
new
ZthySms
();
$res
=
$zthysms
->
sendSmsCode
(
$mobile
);
...
...
application/apicom/home/ZthySms.php
View file @
f7c9f6f9
...
...
@@ -29,8 +29,7 @@ class ZthySms
);
$ret
=
self
::
httpPost
(
$url
,
$date
);
$res
=
json_decode
(
$ret
,
true
);
if
(
res
[
'code'
]
!=
200
){
if
(
$res
[
'code'
]
!=
200
){
return
false
;
}
$code
=
$code
;
...
...
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