1.提交缺失的东西

This commit is contained in:
2025-05-19 11:04:29 +08:00
parent eba6016386
commit 47f58fbc70
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
namespace app\api\controller;
use app\api\logic\ShopLogic;
class ShopController extends BaseApiController
{
public array $notNeedLogin = ['getShopList'];
public function getShopList(){
$result = ShopLogic::getShopList();
return $this->success('获取成功',$result);
}
}

View File

@ -0,0 +1,11 @@
<?php
namespace app\api\logic;
use think\facade\Db;
class ShopLogic
{
public static function getShopList()
{
return Db::name('shop')->where("state",1)->select()->toArray();
}
}