...
|
...
|
@@ -347,6 +347,7 @@ class Order extends Api |
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="order_id", type="integer", required=true, description="订单ID")
|
|
|
* @ApiParams (name="goods_appraise", type="object", required=true, description="[{'goods_id':'商品一ID','star':'评价星级','content':'评价内容','images':'评价图片,多图用英文逗号分隔'},{'goods_id':'商品二ID','star':'评价星级','content':'评价内容','images':'评价图片,多图用英文逗号分隔'}]")
|
|
|
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
|
|
|
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
|
|
|
* @ApiReturnParams (name="data", type="object", description="扩展数据返回")
|
...
|
...
|
@@ -362,7 +363,8 @@ class Order extends Api |
|
|
$this->error($this->model->getError());
|
|
|
}
|
|
|
empty($post['goods_appraise']) && $this->error(__('请填写评价'));
|
|
|
$goods_appraise = json_decode($post['goods_appraise'],true);
|
|
|
$goods_appraise = htmlspecialchars_decode($post['goods_appraise']);
|
|
|
$goods_appraise = json_decode($goods_appraise,true);
|
|
|
$appraiseList = [];
|
|
|
foreach ($goods_appraise as $appraise) {
|
|
|
$appraiseList[] = [
|
...
|
...
|
|