app版本

This commit is contained in:
liu 2024-03-19 14:39:47 +08:00
parent 155033a7d5
commit e6560cc3b0
5 changed files with 7 additions and 7 deletions

View File

@ -40,6 +40,7 @@ class AppUpdateDao extends BaseDao
public function search(array $where = []) public function search(array $where = [])
{ {
return AppUpdate::getDB() return AppUpdate::getDB()
->when(isset($where['id']) && $where['id'] !== '',function($query) use($where){ ->when(isset($where['id']) && $where['id'] !== '',function($query) use($where){
$query->where('id',$where['id']); $query->where('id',$where['id']);

View File

@ -9,6 +9,9 @@ class AppUpdate extends BaseModel
public static function tablePk(): string public static function tablePk(): string
{ {
return 'id'; return 'id';
} }

View File

@ -25,7 +25,7 @@ use think\facade\Cache;
* @package app\common\repositories\system * @package app\common\repositories\system
* @author xaboy * @author xaboy
* @day 2020-04-24 * @day 2020-04-24
* @mixin CacheDao * @mixin
*/ */
class LhappRepository extends BaseRepository class LhappRepository extends BaseRepository
{ {
@ -33,7 +33,7 @@ class LhappRepository extends BaseRepository
/** /**
* CacheRepository constructor. * CacheRepository constructor.
* @param CacheDao $dao * @param $dao
*/ */
public function __construct(AppUpdateDao $dao) public function __construct(AppUpdateDao $dao)
{ {

View File

@ -34,6 +34,7 @@ class Lhapp extends BaseController
public function list() public function list()
{ {
[$page, $limit] = $this->getPage(); [$page, $limit] = $this->getPage();
$where = $this->request->params(['type']); $where = $this->request->params(['type']);
return app('json')->success($this->repository->getList($where, $page, $limit)); return app('json')->success($this->repository->getList($where, $page, $limit));

View File

@ -208,12 +208,7 @@ Route::group(function () {
'_auth' => true, '_auth' => true,
]); ]);
Route::group(function () { Route::group(function () {
Route::get('menus', 'admin.system.auth.Menu/menus'); Route::get('menus', 'admin.system.auth.Menu/menus');
Route::get('system/city/lst', 'merchant.store.shipping.City/lst'); Route::get('system/city/lst', 'merchant.store.shipping.City/lst');
//退出登陆 //退出登陆