Ver Fonte

示例图

liuhairui há 11 horas atrás
pai
commit
c21fd1524b
1 ficheiros alterados com 11 adições e 0 exclusões
  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);
+    }