afa 7 月之前
父节点
当前提交
94d0572b34
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/common/model/Synthesis.php

+ 1 - 1
application/common/model/Synthesis.php

@@ -33,7 +33,7 @@ class Synthesis extends Model
     const Normal           = 1;
     const Normal           = 1;
 
 
     //获取详情
     //获取详情
-    public function getBySynthesis(int $id, string $lan)
+    public static function getBySynthesis(int $id, string $lan)
     {
     {
         return self::alias('a')->where('a.id', $id)
         return self::alias('a')->where('a.id', $id)
                 ->join("product_list b", "a.product_id = b.id", "left")
                 ->join("product_list b", "a.product_id = b.id", "left")