瀏覽代碼

示例图

liuhairui 11 小時之前
父節點
當前提交
c21fd1524b
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      application/api/controller/Product.php

+ 11 - 0
application/api/controller/Product.php

@@ -482,6 +482,17 @@ class Product extends Api
         ]);
     }
 
+    /**
+     * 获取示例图片
+     */
+    public function Get_Images(){
+        if (!$this->request->isGet()) {
+            $this->error('请求错误');
+        }
+//        $param = $this->request->param();
+        $img = Db::name('images')->select();
+        $this->success('获取成功', $img);
+    }