app版本
This commit is contained in:
parent
155033a7d5
commit
e6560cc3b0
@ -40,6 +40,7 @@ class AppUpdateDao extends BaseDao
|
||||
|
||||
public function search(array $where = [])
|
||||
{
|
||||
|
||||
return AppUpdate::getDB()
|
||||
->when(isset($where['id']) && $where['id'] !== '',function($query) use($where){
|
||||
$query->where('id',$where['id']);
|
||||
|
@ -9,6 +9,9 @@ class AppUpdate extends BaseModel
|
||||
|
||||
public static function tablePk(): string
|
||||
{
|
||||
|
||||
|
||||
|
||||
return 'id';
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ use think\facade\Cache;
|
||||
* @package app\common\repositories\system
|
||||
* @author xaboy
|
||||
* @day 2020-04-24
|
||||
* @mixin CacheDao
|
||||
* @mixin
|
||||
*/
|
||||
class LhappRepository extends BaseRepository
|
||||
{
|
||||
@ -33,7 +33,7 @@ class LhappRepository extends BaseRepository
|
||||
|
||||
/**
|
||||
* CacheRepository constructor.
|
||||
* @param CacheDao $dao
|
||||
* @param $dao
|
||||
*/
|
||||
public function __construct(AppUpdateDao $dao)
|
||||
{
|
||||
|
@ -34,6 +34,7 @@ class Lhapp extends BaseController
|
||||
|
||||
public function list()
|
||||
{
|
||||
|
||||
[$page, $limit] = $this->getPage();
|
||||
$where = $this->request->params(['type']);
|
||||
return app('json')->success($this->repository->getList($where, $page, $limit));
|
||||
|
@ -208,12 +208,7 @@ Route::group(function () {
|
||||
'_auth' => true,
|
||||
]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Route::group(function () {
|
||||
|
||||
Route::get('menus', 'admin.system.auth.Menu/menus');
|
||||
Route::get('system/city/lst', 'merchant.store.shipping.City/lst');
|
||||
//退出登陆
|
||||
|
Loading…
x
Reference in New Issue
Block a user