Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
0455dbb2
Commit
0455dbb2
authored
Aug 05, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jielong' of
https://git.yidian-inc.com:8021/bp/goods
into jielong
parents
e6a6836b
a5509135
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
TakePlaceValidate.php
application/library/Validate/TakePlaceValidate.php
+2
-2
Takeplace.php
application/modules/Marketing/controllers/Takeplace.php
+1
-1
TakePlaceService.php
application/services/marketing/TakePlaceService.php
+1
-1
No files found.
application/library/Validate/TakePlaceValidate.php
View file @
0455dbb2
...
...
@@ -26,7 +26,7 @@ class TakePlaceValidate extends \Validate\BaseValidate
protected
$message
=
[
"take_place_id"
=>
"take_place_id不能为空"
,
"marketing_
pindan_id"
=>
"marketing_pindan
_id不能为空"
,
"marketing_
id"
=>
"marketing
_id不能为空"
,
"name"
=>
"自提点名称不能为空"
,
"address"
=>
"详细地址不能为空"
,
"longitude"
=>
"经度不能为空"
,
...
...
@@ -55,6 +55,6 @@ class TakePlaceValidate extends \Validate\BaseValidate
public
function
sceneBindList
()
{
return
$this
->
append
([
'marketing_
pindan_id'
=>
'require'
])
->
only
([
'marketing_pindan
_id'
,
'offset'
,
'limit'
]);
return
$this
->
append
([
'marketing_
id'
=>
'require'
])
->
only
([
'marketing
_id'
,
'offset'
,
'limit'
]);
}
}
\ No newline at end of file
application/modules/Marketing/controllers/Takeplace.php
View file @
0455dbb2
...
...
@@ -62,7 +62,7 @@ class TakeplaceController extends Base
{
(
new
takePlaceValidate
())
->
scene
(
'bindList'
)
->
validate
();
$marketingPindanId
=
$this
->
params
[
'marketing_
pindan_
id'
];
$marketingPindanId
=
$this
->
params
[
'marketing_id'
];
$offset
=
$this
->
params
[
'offset'
]
??
0
;
$limit
=
$this
->
params
[
'limit'
]
??
20
;
...
...
application/services/marketing/TakePlaceService.php
View file @
0455dbb2
...
...
@@ -114,7 +114,7 @@ class TakePlaceService
*/
public
static
function
getPindanTakePlaceList
(
$marketingPindanId
,
$offset
=
0
,
$limit
=
20
)
{
$where
=
[
'marketing_
pindan_
id'
=>
$marketingPindanId
];
$where
=
[
'marketing_id'
=>
$marketingPindanId
];
$where
[
'ORDER'
]
=
[
'marketing_take_place_id'
=>
'DESC'
];
$where
[
'LIMIT'
]
=
[
$offset
,
$limit
];
...
...
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