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
1140f218
Commit
1140f218
authored
Mar 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨打界面新增号码限制
parent
4f4cbc0a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
CellPhone.php
application/api_broker/controller/CellPhone.php
+3
-0
Basic.php
application/api_broker/extend/Basic.php
+1
-0
AAgentsPhone.php
application/model/AAgentsPhone.php
+8
-1
No files found.
application/api_broker/controller/CellPhone.php
View file @
1140f218
...
...
@@ -31,6 +31,7 @@ class CellPhone extends Basic
* @throws \think\exception\DbException
*/
public
function
bindAXB
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
request
->
param
();
if
(
$params
[
'phone_a'
]
||
$params
[
'phone_b'
])
{
$phone_a
=
$this
->
params
[
'phone_a'
];
//经纪人手机号
...
...
@@ -88,6 +89,7 @@ class CellPhone extends Basic
* @return \think\Response
*/
public
function
updateBindAXB
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
request
->
param
();
if
(
$params
[
'phone_x'
]
&&
(
$params
[
'phone_a'
]
||
$params
[
'phone_b'
]))
{
$bind
=
new
BindingPhone
();
...
...
@@ -121,6 +123,7 @@ class CellPhone extends Basic
* @throws \think\exception\DbException
*/
public
function
agentsUnBind
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$phone_x
=
$this
->
params
[
'phone_x'
];
$phone_a
=
$this
->
params
[
'phone_a'
];
$phone_b
=
$this
->
params
[
'phone_b'
];
...
...
application/api_broker/extend/Basic.php
View file @
1140f218
...
...
@@ -12,6 +12,7 @@ namespace app\api_broker\extend;
use
app\model\AAgents
;
use
app\model\Users
;
use
app\model\GOperatingRecords
;
use
Firebase\JWT\JWT
;
use
think\Controller
;
use
think\Db
;
use
think\Request
;
...
...
application/model/AAgentsPhone.php
View file @
1140f218
...
...
@@ -20,6 +20,12 @@ class AAgentsPhone extends BaseModel
* @throws \Exception
*/
public
function
add
(
$id
,
$phone
)
{
$num
=
$this
->
where
([
'agents_id'
=>
$id
,
'status'
=>
0
])
->
count
();
$phone_num
=
count
(
$phone
);
if
((
$num
>
2
)
||
(
$phone_num
>
2
))
{
$result
=
0
;
}
else
{
if
(
is_array
(
$phone
))
{
$insert_data
=
[];
$phone
=
array_unique
(
$phone
);
...
...
@@ -39,8 +45,9 @@ class AAgentsPhone extends BaseModel
}
else
{
$result
=
0
;
}
}
}
return
$result
;
}
...
...
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