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
1e73b3c9
Commit
1e73b3c9
authored
Aug 28, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiaoshi
parent
ab86dd46
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
a.php
a.php
+2
-0
Store.php
application/controllers/Store.php
+0
-1
EvaluationService.php
application/models/Business/Goods/EvaluationService.php
+4
-0
FootprintService.php
application/models/Business/User/FootprintService.php
+1
-1
No files found.
a.php
0 → 100644
View file @
1e73b3c9
<?php
echo
3333
;
application/controllers/Store.php
View file @
1e73b3c9
...
...
@@ -24,7 +24,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
*/
public
function
indexAction
(){
$recommendGoods
=
$this
->
storeService
->
getRecommendGoodsCache
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
// $adv = array('href'=>'http://qm.22ca.com/qm/tmpl/goods.html?goods_commonid=101654','imageUrl'=>'http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/data/upload/mall/adv/05715960161498410.jpg');
$adv
=
\Business\Common\AdvServiceModel
::
getInstance
()
->
getStoreAdvs
(
$this
->
req
[
\Our\NameConst
::
data
],
\Our\AdvConst
::
storePageMid
);
$hotSale
=
$this
->
storeService
->
getHotSaleGoods
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
$recommendGoodsClasses
=
$this
->
storeService
->
getRecommendClassCache
(
$this
->
req
[
\Our\NameConst
::
data
]);
...
...
application/models/Business/Goods/EvaluationService.php
View file @
1e73b3c9
...
...
@@ -205,9 +205,13 @@ class EvaluationServiceModel extends \Business\AbstractModel {
$param
[
'descCredit'
]
||
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyDescCredit
);
$param
[
'deliveryCredit'
]
||
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyDeliveryCredit
);
$param
[
'deliveryCredit'
]
||
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyServiceCredit
);
$log
=
\Our\Log
::
getInstance
();
// $log->write(print_r($data, true));
$log
->
write
(
json_encode
(
$param
[
'goods'
]));
if
(
!
is_array
(
$param
[
'goods'
]))
{
$param
[
'goods'
]
=
json_decode
(
$param
[
'goods'
],
true
);
}
$log
->
write
(
json_encode
(
$param
[
'goods'
]));
foreach
(
$param
[
'goods'
]
as
$v
){
$v
[
'goodsId'
]
||
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyGoodsId
);
$v
[
'scores'
]
||
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyScores
);
...
...
application/models/Business/User/FootprintService.php
View file @
1e73b3c9
...
...
@@ -41,7 +41,7 @@ class FootprintServiceModel extends \Business\AbstractModel
*/
public
function
getFootprints
(
$param
,
$memberId
){
// $pageSize = (int)($param['pageSize']);
//
$pageIndex
= (int)($param['pageIndex']);
//
k
= (int)($param['pageIndex']);
$viewTime
=
(
int
)(
$param
[
'viewTime'
]);
if
(
$viewTime
===
0
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
ViewTimeNotExist
);
...
...
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