page_size读取不到的问题修复

This commit is contained in:
hdm 2022-09-06 22:09:17 +08:00
parent 1c95dd11ac
commit cb137323d8
123 changed files with 153 additions and 147 deletions
app
adm
api
article
base
business
common.php
contract
customer
finance
home
install
controller
validate
message
middleware.php
note
oa

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
//读取文章分类列表

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
declare (strict_types = 1);

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -31,7 +31,7 @@ class Index extends BaseController
}
$where[] = ['a.delete_time', '=', 0];
$where[] = ['a.is_share', '=', 1];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = ArticleList::where($where)
->field('a.*,a.id as id,c.title as cate_title,a.title as title,d.title as department,u.name as user')
->alias('a')
@ -59,7 +59,7 @@ class Index extends BaseController
}
$where[] = ['a.delete_time', '=', 0];
$where[] = ['a.uid', '=', $this->uid];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = ArticleList::where($where)
->field('a.*,a.id as id,c.title as cate_title,a.title as title')
->alias('a')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -89,12 +89,18 @@ abstract class BaseController
$this->uid = Session::get($session_admin)['id'];
$this->did = Session::get($session_admin)['did'];
View::assign('login_user', $this->uid);
$user = Db::name('Admin')->where(['id' => $this->uid])->find();
$is_lock = $user['is_lock'];
if($is_lock==1){
redirect('/home/login/lock.html')->send();
exit;
}
// 验证用户访问权限
if (($this->module == 'api') || ($this->module == 'message') || ($this->module == 'home' && $this->controller == 'index')) {
return true;
}
else{
$reg_pwd = Db::name('Admin')->where(['id' => $this->uid])->value('reg_pwd');
$reg_pwd = $user['reg_pwd'];
if($reg_pwd!==''){
redirect('/home/api/edit_password.html')->send();
exit;

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
// 应用公共文件,内置主要的数据处理方法

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -223,7 +223,7 @@ class Api extends BaseController
}
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',share_ids)")];
}
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$list = Db::name('Customer')->field('id,name,address')->order('id asc')->where($where)->paginate($rows, false)->each(function($item, $key){
$contact = Db::name('CustomerContact')->where(['cid'=>$item['id'],'is_default'=>1])->find();
if(!empty($contact)){

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -46,7 +46,7 @@ class Contract extends Model
//列表检索
public function get_list($param = [], $where = [], $whereOr=[])
{
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$list = self::where($where)
->where(function ($query) use($whereOr) {
$query->whereOr($whereOr);

@ -57,7 +57,7 @@ class ContractLog extends Model
$where = [];
$where[] = ['a.contract_id', '=', $param['contract_id']];
$page = intval($param['page']);
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = Db::name('ContractLog')
->field('a.*,u.name,u.thumb')
->alias('a')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -51,7 +51,7 @@ class Api extends BaseController
$where = array();
$where[] = ['delete_time', '=', 0];
$where[] = ['cid', '=', $param['customer_id']];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerTrace::where($where)
->order('create_time desc')
->paginate($rows, false, ['query' => $param])
@ -170,7 +170,7 @@ class Api extends BaseController
$where = array();
$where[] = ['delete_time', '=', 0];
$where[] = ['cid', '=', $param['customer_id']];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerChance::where($where)
->order('create_time desc')
->paginate($rows, false, ['query' => $param])
@ -289,7 +289,7 @@ class Api extends BaseController
$where = array();
$where[] = ['delete_time', '=', 0];
$where[] = ['cid', '=', $param['customer_id']];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerContact::where($where)
->order('create_time desc')
->paginate($rows, false, ['query' => $param])

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -40,7 +40,7 @@ class Contact extends BaseController
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',c.share_ids)")];
}
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerContact::where($where)
->where(function ($query) use($whereOr) {
$query->whereOr($whereOr);

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -73,7 +73,7 @@ class Index extends BaseController
}
}
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerList::where($where)
->where(function ($query) use($whereOr) {
$query->whereOr($whereOr);
@ -127,7 +127,7 @@ class Index extends BaseController
$where[] = ['a.delete_time', '=', 0];
$where[] = ['a.belong_uid', '=', 0];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerList::where($where)
->field('a.*,d.title as belong_department,g.title as grade,s.title as source,i.title as industry')
->alias('a')
@ -210,7 +210,7 @@ class Index extends BaseController
$where[] = ['a.delete_time', '>', 0];
$where[] = ['a.belong_uid', '=', 0];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = CustomerList::where($where)
->field('a.*,d.title as belong_department,g.title as grade,s.title as source,i.title as industry')
->alias('a')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -128,7 +128,7 @@ class CustomerLog extends Model
$where4[] = ['a.chance_id', 'in', $chance_ids];
$page = intval($param['page']);
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = Db::name('CustomerLog')
->field('a.*,u.name,u.thumb')
->alias('a')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -6,7 +6,7 @@ class Expense extends Model
{
public function get_list($param = [],$where = [], $type='and')
{
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
if($type == 'or'){
$expense = Expense::whereOr($where)
->order('id desc')

@ -7,7 +7,7 @@ class Invoice extends Model
//发票列表检索
public function get_list($param=[],$where = [], $type='and')
{
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
if($type == 'or'){
$list = Invoice::field('i.*,a.name,d.title as department_name')
->alias('i')
@ -65,7 +65,7 @@ class Invoice extends Model
//到账列表检索
public function income_list($param = [], $where = [])
{
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$list = Invoice::where($where)
->order('is_cash asc,create_time desc')
->paginate($rows, false, ['query' => $param])

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
declare (strict_types = 1);

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -205,7 +205,7 @@ class Index extends BaseController
$department_array = get_department_son($param['did']);
$where[] = ['did', 'in', $department_array];
}
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$admin = \app\user\model\Admin::where($where)
->order('id desc')
->paginate($rows, false, ['query' => $param])

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -26,7 +26,7 @@ class Keywords extends BaseController
$where[] = ['title', 'like', '%' . $param['keywords'] . '%'];
}
$where[] = ['status', '>=', 0];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = Db::name('Keywords')
->order('create_time desc')
->where($where)

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -27,7 +27,7 @@ class Log extends BaseController
if (!empty($param['action'])) {
$where[] = ['action','=',$param['action']];
}
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$content = DB::name('AdminLog')
->field("id,uid,name,action,title,content,rule_menu,ip,param_id,param,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') create_time")
->order('create_time desc')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
// 全局中间件定义文件

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -28,7 +28,7 @@ class Index extends BaseController
$where[] = ['a.title|a.content', 'like', '%' . $param['keywords'] . '%'];
}
$where[] = ['a.status', '>=', 0];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$note = NoteList::where($where)
->field('a.*,c.title as cate_title')
->alias('a')

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
/**

@ -1,7 +1,7 @@
<?php
/**
* @copyright Copyright (c) 2021 勾股工作室
* @license https://opensource.org/licenses/GPL-2.0
* @license https://opensource.org/licenses/GPL-3.0
* @link https://www.gougucms.com
*/
@ -32,7 +32,7 @@ class Approve extends BaseController
}
}
$where[] = ['admin_id','=',$this->uid];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$list = Db::name('Approve')
->field('f.*,a.name,d.title as department_name,t.title as flow_type')
->alias('f')
@ -72,7 +72,7 @@ class Approve extends BaseController
$map1[] = ['', 'exp', Db::raw("FIND_IN_SET('{$user_id}',check_admin_ids)")];
$map2[] = ['', 'exp', Db::raw("FIND_IN_SET('{$user_id}',flow_admin_ids)")];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
if($status == 0){
$list = Db::name('Approve')
@ -153,7 +153,7 @@ class Approve extends BaseController
$map = [];
$map[] = ['check_status', '=', 2];
$map[] = ['', 'exp', Db::raw("FIND_IN_SET('{$user_id}',copy_uids)")];
$rows = empty($param['limit']) ? get_config('app . page_size') : $param['limit'];
$rows = empty($param['limit']) ? get_config('app.page_size') : $param['limit'];
$list = Db::name('Approve')
->field('f.*,a.name,d.title as department_name,t.title as flow_type')
->alias('f')

Some files were not shown because too many files have changed in this diff Show More