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
4144d0ad
Commit
4144d0ad
authored
Aug 07, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:添加拼单商品回显增加ota_name
parent
5fad960a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Ota.php
application/models/goods/mysql/Ota.php
+8
-0
MarketingPindanGoodsService.php
application/services/goods/MarketingPindanGoodsService.php
+7
-0
No files found.
application/models/goods/mysql/Ota.php
View file @
4144d0ad
...
...
@@ -17,4 +17,12 @@ class Ota extends MysqlBase
const
STATUS_NORMAL
=
0
;
// 正常
const
STATUS_DELETE
=
1
;
// 删除
public
static
function
getRecord
(
$where
,
$columns
=
[])
{
if
(
empty
(
$columns
))
{
$columns
=
'*'
;
}
return
self
::
get
(
$columns
,
$where
);
}
}
application/services/goods/MarketingPindanGoodsService.php
View file @
4144d0ad
...
...
@@ -88,6 +88,13 @@ class MarketingPindanGoodsService
$ksyun
=
GoodsService
::
getUrlList
(
$sku
[
"desc_pic_url"
]);
$data
[
"goods_info"
][
"desc_pic_url_list"
]
=
$ksyun
;
}
$data
[
"goods_info"
][
"ota_name"
]
=
""
;
if
(
!
empty
(
$sku
[
"ota_id"
]))
{
$ota
=
Ota
::
getRecord
([
"ota_id"
=>
$sku
[
"ota_id"
]],
[
"ota_name"
]);
if
(
!
empty
(
$ota
))
{
$data
[
"goods_info"
][
"ota_name"
]
=
$ota
[
"ota_name"
];
}
}
}
return
$data
;
}
...
...
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