Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
cbd1bd50
Commit
cbd1bd50
authored
Dec 26, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分享二维码链接
parent
9c1247b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
Member.php
application/api/controller/Member.php
+14
-8
No files found.
application/api/controller/Member.php
View file @
cbd1bd50
...
...
@@ -107,15 +107,21 @@ class Member extends Basic
->
count
();
if
(
check_phone
(
$phone
))
{
if
(
$num
>
7
)
{
$data
[
'msg'
]
=
'短信发送超过上限'
;
}
else
{
//
if ($num > 7) {
//
$data['msg'] = '短信发送超过上限';
//
} else {
$result
[
'statusMsg'
]
=
''
;
$result
[
'statusCode'
]
=
''
;
if
(
$this
->
request
->
param
(
'type'
)
==
'add'
)
{
$num
=
$this
->
user
->
where
(
'user_phone'
,
$phone
)
->
count
();
if
(
$num
>
0
)
{
return
$this
->
response
(
$data
[
'status'
],
'您已注册,请登录'
);
}
}
$message
=
new
MessageUntils
();
$_code
=
mt_rand
(
1000
,
9999
)
.
''
;
$result
=
$message
->
sendCCPSMS
(
$phone
,
array
(
$_code
,
'5分钟'
),
214759
);
//
$result = $message->sendCCPSMS($phone, array($_code, '5分钟'), 214759);
$noteLog
->
phone
=
$phone
;
$noteLog
->
template_msg
=
'【同联商业】您的验证码为'
.
$_code
.
',请于5分钟内正确输入,如非本人操作,请忽略此短信。'
;
...
...
@@ -137,7 +143,7 @@ class Member extends Basic
$data
[
'msg'
]
=
'短信发送失败'
;
}
$noteLog
->
save
();
}
//
}
}
else
{
$data
[
'msg'
]
=
'手机号码错误'
;
}
...
...
@@ -294,7 +300,7 @@ class Member extends Basic
$result
[
'user_pswd'
]
=
$pwd
;
}
else
{
$data
[
'status'
]
=
101
;
$data
[
'msg'
]
=
'密码错误'
;
$data
[
'msg'
]
=
'
原
密码错误'
;
}
}
...
...
@@ -368,9 +374,9 @@ class Member extends Basic
if
(
$result
)
{
$code
=
new
\app\api\untils\GenerateCodeUntils
();
$url
=
$this
->
request
->
domain
()
.
'/
test.html?referrer_source=
0&id='
.
$result
->
id
;
$url
=
$this
->
request
->
domain
()
.
'/
app.php/app/share_register?referrer_source=1
0&id='
.
$result
->
id
;
$path
=
$code
->
getCode
(
$url
,
$result
->
id
);
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'status'
]
=
200
;
}
else
{
$data
[
'msg'
]
=
'没有该用户'
;
...
...
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