mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改代码结构
This commit is contained in:
parent
a41516814f
commit
a948e6cb10
@ -21,10 +21,8 @@ use think\Db;
|
||||
|
||||
/**
|
||||
* 后台权限基础控制器
|
||||
*
|
||||
* Class BasicAdmin
|
||||
* @package controller
|
||||
* @author Anyon <zoujingli@qq.com>
|
||||
* @date 2017/02/13 14:24
|
||||
*/
|
||||
class BasicAdmin extends Controller {
|
||||
|
||||
@ -84,7 +82,7 @@ class BasicAdmin extends Controller {
|
||||
if ($pk_value !== '') { // Edit Options
|
||||
!empty($pk_value) && $db->where($pk, $pk_value);
|
||||
!empty($where) && $db->where($where);
|
||||
$vo = array_merge($data, (array) $db->find());
|
||||
$vo = array_merge($data, (array)$db->find());
|
||||
}
|
||||
$this->_callback('_form_filter', $vo);
|
||||
$this->assign('vo', $vo);
|
||||
|
@ -1,4 +1,15 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | Think.Admin
|
||||
// +----------------------------------------------------------------------
|
||||
// | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | 官方网站: http://think.ctolog.com
|
||||
// +----------------------------------------------------------------------
|
||||
// | 开源协议 ( https://mit-license.org )
|
||||
// +----------------------------------------------------------------------
|
||||
// | github开源项目:https://github.com/zoujingli/Think.Admin
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace controller;
|
||||
|
||||
@ -9,6 +20,7 @@ use think\Response;
|
||||
|
||||
/**
|
||||
* 数据接口通用控制器
|
||||
* Class BasicApi
|
||||
* @package controller
|
||||
*/
|
||||
class BasicApi {
|
||||
|
@ -18,6 +18,11 @@ use service\WechatService;
|
||||
use think\Controller;
|
||||
use think\Log;
|
||||
|
||||
/**
|
||||
* 微信基础控制器
|
||||
* Class BasicWechat
|
||||
* @package controller
|
||||
*/
|
||||
class BasicWechat extends Controller {
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user