瀏覽代碼

checkredis

yuenan
娄梦宁 3 年之前
父節點
當前提交
e3647f5dad
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      addons/unishop/controller/Product.php

+ 1
- 1
addons/unishop/controller/Product.php 查看文件

@@ -83,7 +83,7 @@ class Product extends Base
}
$data = $data->append(['images_text', "detail_images_text",'spec_list', 'spec_table_list'])->toArray();
$qaModel = new Qa();
$qa=$qaModel->field("question,answer")->select();
$qa=$qaModel->where(["product_id"=>$productId])->field("question,answer")->select();
$list = collection($qa)->toArray();
$data['qa']=$list;
$this->success('', $data);


Loading…
取消
儲存