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
8f915769
Commit
8f915769
authored
Jun 13, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增经纪人必填部门和门店
parent
2fcf7434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Agent.php
application/index/controller/Agent.php
+6
-4
No files found.
application/index/controller/Agent.php
View file @
8f915769
...
@@ -125,6 +125,10 @@ class Agent extends Basic
...
@@ -125,6 +125,10 @@ class Agent extends Basic
return
$this
->
response
(
101
,
'门店id为空!'
);
return
$this
->
response
(
101
,
'门店id为空!'
);
}
}
if
(
empty
(
$this
->
params
[
'district_id'
]))
{
return
$this
->
response
(
101
,
'部门id为空!'
);
}
$num
=
0
;
//判断重复手机号
$num
=
0
;
//判断重复手机号
//新增或者编辑数据
//新增或者编辑数据
...
@@ -157,9 +161,7 @@ class Agent extends Basic
...
@@ -157,9 +161,7 @@ class Agent extends Basic
return
$this
->
response
(
101
,
'手机号重复'
);
return
$this
->
response
(
101
,
'手机号重复'
);
}
}
$store
=
new
AStore
();
$data
[
'district_id'
]
=
$this
->
params
[
'district_id'
];
$data
[
'district_id'
]
=
$store
->
getStoreKeyById
(
'district_id'
,
[
'id'
=>
$this
->
params
[
'store_id'
]]);
$data
[
'name'
]
=
trim
(
$this
->
params
[
'name'
]);
$data
[
'name'
]
=
trim
(
$this
->
params
[
'name'
]);
$data
[
'store_id'
]
=
$this
->
params
[
'store_id'
];
$data
[
'store_id'
]
=
$this
->
params
[
'store_id'
];
$data
[
'phone'
]
=
trim
(
$this
->
params
[
'phone'
]);
$data
[
'phone'
]
=
trim
(
$this
->
params
[
'phone'
]);
...
@@ -174,7 +176,7 @@ class Agent extends Basic
...
@@ -174,7 +176,7 @@ class Agent extends Basic
}
}
}
else
{
}
else
{
//查看
//查看
$info
=
$m_agent
->
verifyUser
(
'id,name,phone,password,store_id,sex,admin_off,remarks'
,
''
,
[
'id'
=>
$id
]);
$info
=
$m_agent
->
verifyUser
(
'id,name,phone,password,
district_id,
store_id,sex,admin_off,remarks'
,
''
,
[
'id'
=>
$id
]);
return
$this
->
response
(
200
,
'查看'
,
$info
);
return
$this
->
response
(
200
,
'查看'
,
$info
);
}
}
}
}
...
...
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