Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
b41fd1ff
Commit
b41fd1ff
authored
Sep 07, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz
parents
798cc48c
dc924a6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
EvaluationService.php
application/models/Business/Goods/EvaluationService.php
+1
-0
GoodsCommon.php
application/models/DAO/GoodsCommon.php
+2
-2
index.php
public/index.php
+0
-0
No files found.
application/models/Business/Goods/EvaluationService.php
View file @
b41fd1ff
...
@@ -74,6 +74,7 @@ class EvaluationServiceModel extends \Business\AbstractModel {
...
@@ -74,6 +74,7 @@ class EvaluationServiceModel extends \Business\AbstractModel {
//$images = $this->_upload($v['images']);
//$images = $this->_upload($v['images']);
$images
=
$v
[
'images'
];
$images
=
$v
[
'images'
];
if
(
!
is_array
(
$images
))
$images
=
json_decode
(
$images
,
true
);
if
(
!
is_array
(
$images
))
$images
=
json_decode
(
$images
,
true
);
if
(
empty
(
$images
))
$images
=
null
;
$images
?
$data
[
'goods'
][
$k
][
'haveImg'
]
=
1
:
$data
[
'goods'
][
$k
][
'haveImg'
]
=
0
;
$images
?
$data
[
'goods'
][
$k
][
'haveImg'
]
=
1
:
$data
[
'goods'
][
$k
][
'haveImg'
]
=
0
;
if
(
$data
[
'goods'
][
$k
][
'haveImg'
]
==
1
)
{
if
(
$data
[
'goods'
][
$k
][
'haveImg'
]
==
1
)
{
foreach
(
$images
as
&
$image
)
{
foreach
(
$images
as
&
$image
)
{
...
...
application/models/DAO/GoodsCommon.php
View file @
b41fd1ff
...
@@ -183,9 +183,9 @@ class GoodsCommonModel extends \DAO\AbstractModel {
...
@@ -183,9 +183,9 @@ class GoodsCommonModel extends \DAO\AbstractModel {
public
function
getCount
(
$where
,
$attrStr
=
''
){
public
function
getCount
(
$where
,
$attrStr
=
''
){
$this
->
setDb
(
$this
->
dbName
);
$this
->
setDb
(
$this
->
dbName
);
if
(
$attrStr
){
if
(
$attrStr
){
return
$this
->
db
->
from
(
$this
->
_tableName
)
->
join
(
'han_goods_attribute_value'
,
'han_goods_attribute_value.goods_commonid = han_goods_common.goods_commonid'
)
->
where
(
$where
)
->
where
(
$attrStr
)
->
fetchNum
();
return
$this
->
db
->
from
(
$this
->
_tableName
)
->
join
(
'han_goods_attribute_value'
,
'han_goods_attribute_value.goods_commonid = han_goods_common.goods_commonid'
)
->
where
(
$where
)
->
where
(
$attrStr
)
->
where
(
array
(
'goods_state'
=>
1
,
'goods_verify'
=>
1
))
->
fetchNum
();
}
}
return
$this
->
db
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
fetchNum
();
return
$this
->
db
->
from
(
$this
->
_tableName
)
->
where
(
array
(
'goods_state'
=>
1
,
'goods_verify'
=>
1
))
->
where
(
$where
)
->
fetchNum
();
}
}
/**
/**
* 获取分享信息
* 获取分享信息
...
...
public/index.php
100755 → 100644
View file @
b41fd1ff
File mode changed from 100755 to 100644
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