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
b48f8344
Commit
b48f8344
authored
Apr 21, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
找铺
parent
0812d4d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
FindShop.php
application/api/controller/FindShop.php
+9
-1
No files found.
application/api/controller/FindShop.php
View file @
b48f8344
...
@@ -24,10 +24,13 @@ class FindShop extends Basic
...
@@ -24,10 +24,13 @@ class FindShop extends Basic
parent
::
__construct
(
$request
);
parent
::
__construct
(
$request
);
}
}
/**
/**
* 新增取消修改找铺需求
* 新增取消修改找铺需求
* @return \think\Response
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
updateFindShop
()
public
function
updateFindShop
()
{
{
...
@@ -77,6 +80,11 @@ class FindShop extends Basic
...
@@ -77,6 +80,11 @@ class FindShop extends Basic
$where_
[
"id"
]
=
$params
[
"id"
];
$where_
[
"id"
]
=
$params
[
"id"
];
$id
=
$findShopModel
->
updateFindShop
(
$where_
,
$updateParams
);
$id
=
$findShopModel
->
updateFindShop
(
$where_
,
$updateParams
);
}
else
{
//新增数据
}
else
{
//新增数据
$user_id
=
$params
[
"user_id"
];
$result
=
$findShopModel
->
getFindShopList
(
"id"
,
[
"user_id"
=>
$user_id
],
1
,
1
);
if
(
count
(
$result
)
>
0
){
return
$this
->
response
(
"101"
,
"已存在找铺记录!"
);
}
$updateParams
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$updateParams
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$id
=
$findShopModel
->
addFindShop
(
$updateParams
);
$id
=
$findShopModel
->
addFindShop
(
$updateParams
);
}
}
...
...
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