yingzi 2 năm trước cách đây
mục cha
commit
1dcb706757
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/api/controller/User.php

+ 1 - 1
app/api/controller/User.php

@@ -510,7 +510,7 @@ class User extends BaseController
         $data=null;
         $data=null;
         if($totalCount>0){
         if($totalCount>0){
             $data = (new UserShowTemplate)
             $data = (new UserShowTemplate)
-                ->field("t.id,t.title,t.price,t.old_price,t.status,t.imgs,t.is_hot,t.is_recommend,t.code,look_count,t.real_sales,t.unreal_sales,ut.is_default")
+                ->field("ut.id,t.id as show_template_id,t.title,t.price,t.old_price,t.status,t.imgs,t.is_hot,t.is_recommend,t.code,look_count,t.real_sales,t.unreal_sales,ut.is_default")
                 ->alias("ut")
                 ->alias("ut")
                 ->join("show_template t", "t.id = ut.show_template_id","left")
                 ->join("show_template t", "t.id = ut.show_template_id","left")
                 ->where($where)
                 ->where($where)