You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
26
hyhproject/wechat2/model/GoodsAppraises.php
Executable file
26
hyhproject/wechat2/model/GoodsAppraises.php
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace wstmart\wechat\model;
|
||||
use wstmart\common\model\GoodsAppraises as CGoodsAppraises;
|
||||
use think\Db;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 评价类
|
||||
*/
|
||||
class GoodsAppraises extends CGoodsAppraises{
|
||||
/**
|
||||
* 获取评论
|
||||
*/
|
||||
public function getAppr(){
|
||||
$oId = (int)input('oId');
|
||||
$uId = (int)session('WST_USER.userId');
|
||||
$gId = (int)input('gId');
|
||||
$specId = (int)input('sId');
|
||||
$orderGoodsId = (int)input('orderGoodsId');
|
||||
$rs = $this->where(['orderId'=>$oId,'userId'=>$uId,'goodsId'=>$gId,'goodsSpecId'=>$specId,'orderGoodsId'=>$orderGoodsId])->find();
|
||||
if($rs!==false){
|
||||
$rs = !empty($rs)?$rs:['goodsScore'=>'','timeScore'=>'','serviceScore'=>'','content'=>''];
|
||||
return WSTReturn('',1,$rs);
|
||||
}
|
||||
return WSTReturn('获取出错',-1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user