Browse Source

商城,分类

lizhen_gitee 4 months ago
parent
commit
80f4fc68b2
2 changed files with 10 additions and 2 deletions
  1. 9 1
      addons/shopro/controller/Category.php
  2. 1 1
      application/config.php

+ 9 - 1
addons/shopro/controller/Category.php

@@ -3,13 +3,21 @@
 namespace addons\shopro\controller;
 
 use app\admin\model\shopro\Category as CategoryModel;
-
+use think\Db;
 class Category extends Common
 {
 
     protected $noNeedLogin = ['*'];
     protected $noNeedRight = ['*'];
 
+
+    public function lists(){
+        $category = Db::name('shopro_category')->where('parent_id', 1)->where('status','normal')->order('weigh', 'desc')->order('id', 'desc')->select();
+        $category = list_domain_image($category,['image']);
+        $this->success('商城分类', $category);
+    }
+
+    //没用到
     public function index()
     {
         $id = $this->request->param('id', 0);

+ 1 - 1
application/config.php

@@ -374,7 +374,7 @@ return [
         ],
 
     //各种url
-    'pay_notify_url' => 'https://xiaoshan.huxiukeji.cn',  //支付异步回调域名
+    'pay_notify_url' => 'https://xiaoshan.kuikecloud.com',  //支付异步回调域名
 
 
     //开放平台的,微信登录