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
11774c70
Commit
11774c70
authored
Mar 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增和编辑商铺与经纪人关系修改
parent
d9947bb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
7 deletions
+25
-7
Shop.php
application/api_broker/controller/Shop.php
+1
-1
GHouses.php
application/model/GHouses.php
+24
-6
No files found.
application/api_broker/controller/Shop.php
View file @
11774c70
...
@@ -288,7 +288,7 @@ class Shop extends Basic
...
@@ -288,7 +288,7 @@ class Shop extends Basic
}
}
/**
/**
* 上传
头像
* 上传
商铺图片
*
*
* @return \think\Response
* @return \think\Response
*/
*/
...
...
application/model/GHouses.php
View file @
11774c70
...
@@ -321,12 +321,21 @@ class GHouses extends BaseModel
...
@@ -321,12 +321,21 @@ class GHouses extends BaseModel
/***保存图片 hujun 2018.1.19 end***/
/***保存图片 hujun 2018.1.19 end***/
$agents
=
new
GHousesToAgents
();
$agents
=
new
GHousesToAgents
();
//权限人
//权限人
$agents
->
addAgents
(
$params
[
'agent_data'
],
$house_id
,
1
);
if
(
isset
(
$params
[
'agent_data'
]))
{
$agents
->
addAgents
(
$params
[
'agent_data'
],
$house_id
,
1
);
}
//盘方
//盘方
$agents
->
addAgents
(
$params
[
'agent_dish'
],
$house_id
,
2
);
if
(
isset
(
$params
[
'agent_dish'
]))
{
$agents
->
addAgents
(
$params
[
'agent_dish'
],
$house_id
,
2
);
}
//独家方
//独家方
$agents
->
addAgents
(
$params
[
'exclusive_ids'
],
$house_id
,
3
);
if
(
isset
(
$params
[
'exclusive_ids'
]))
{
$agents
->
addAgents
(
$params
[
'exclusive_ids'
],
$house_id
,
3
);
}
return
$house_id
;
return
$house_id
;
}
}
...
@@ -558,11 +567,20 @@ class GHouses extends BaseModel
...
@@ -558,11 +567,20 @@ class GHouses extends BaseModel
$agents
=
new
GHousesToAgents
();
$agents
=
new
GHousesToAgents
();
//权限人
//权限人
$agents
->
addAgents
(
$params
[
'agent_data'
],
$house_id
,
1
);
if
(
isset
(
$params
[
'agent_data'
]))
{
$agents
->
addAgents
(
$params
[
'agent_data'
],
$house_id
,
1
);
}
//盘方
//盘方
$agents
->
addAgents
(
$params
[
'agent_dish'
],
$house_id
,
2
);
if
(
isset
(
$params
[
'agent_dish'
]))
{
$agents
->
addAgents
(
$params
[
'agent_dish'
],
$house_id
,
2
);
}
//独家方
//独家方
$agents
->
addAgents
(
$params
[
'exclusive_ids'
],
$house_id
,
3
);
if
(
isset
(
$params
[
'exclusive_ids'
]))
{
$agents
->
addAgents
(
$params
[
'exclusive_ids'
],
$house_id
,
3
);
}
return
$house_id
;
return
$house_id
;
}
}
}
}
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