app版本
This commit is contained in:
parent
155033a7d5
commit
e6560cc3b0
@ -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']);
|
||||||
|
@ -9,6 +9,9 @@ class AppUpdate extends BaseModel
|
|||||||
|
|
||||||
public static function tablePk(): string
|
public static function tablePk(): string
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 'id';
|
return 'id';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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));
|
||||||
|
@ -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');
|
||||||
//退出登陆
|
//退出登陆
|
||||||
|
Loading…
x
Reference in New Issue
Block a user