# WechatAdmin
> 微信后台业务控制器,主要编写模块相关后台管理程序
> 继承抽象类 WechatAdminBasic
> 必须实现入口方法public function entry(){}
## 父类成员变量:
~~~
public $acid;
//公众号信息
public $wechat_account_info;
//OPEN平台对象
public $open;
//对象容器
public $di = [];
//当前URL
public $dest_url;
//REQUEST对象
public $request;
//插件信息
public $addon_info;
//插件设置信息
public $addon_wechataccount_setting;
public $admin_auth;
public $auth_addon_actions;
~~~
## 全局变量
$_WE (公众号相关信息)
$_MODULE (模块相关信息)
~~~
$_WE
array(1) {
["wechat_account_info"]=>
array(31) {
["id"]=>
int(26)
["authorizer_appid"]=>
string(18) "wx6f1dfeae556582ae"
["authorizer_access_token"]=>
string(157) "19_nvWloK-sB_hzq4iKPiqldgs58kKqoP6Rh4J5tfz5SQXFgF0H_YhtJe98-5FHymhebcYIbfu3oaLmq16X8N5JvL-Kw0Oxc_9l4GfI0I0wPTtUB6aMf7-4D5YdURGBma-6aNKAy09OrOi23YS4JPRaAEDWCE"
["authorizer_refresh_token"]=>
string(58) "refreshtoken@@@V_533Vnnn8-QaWuPiAoKkETK85PoPB_Zd5QQjF72fOs"
["func_info"]=>
string(100) "[{"funcscope_category":{"id":1}},{"funcscope_category":{"id":15}},{"funcscope_category":{"id":4}},{""
["nick_name"]=>
string(33) "旬邑县雪莲生态保养会所"
["head_img"]=>
string(126) "http://wx.qlogo.cn/mmopen/9icGXCdjRxGIIFy8kZft8UuqZAbOUSjhGc7xOrXPsn7VKbRmwfHeAPxMx6RHNtyvT50EqmB7HG7ZPibos1s3FA2JW9vmIK3A7c/0"
["expires_in"]=>
int(7200)
["service_type"]=>
NULL
["service_type_info"]=>
string(8) "{"id":2}"
["verify_type"]=>
NULL
["verify_type_info"]=>
string(8) "{"id":0}"
["user_name"]=>
string(15) "gh_962b22f376f9"
["alias"]=>
string(0) ""
["qrcode_url"]=>
string(127) "http://mmbiz.qpic.cn/mmbiz_jpg/5n8Lq4Bup9wsRLRuX5iatQRThVV7QzicBYDRiaWCFlTUiaWWvnzTFpkOicoMGGdia65A6X56kTibeNPOiaZDZ8rRZOxKgA/0"
["business_info"]=>
string(72) "{"open_pay":0,"open_shake":0,"open_scan":0,"open_card":1,"open_store":0}"
["principal_name"]=>
string(39) "旬邑县城关雪莲生态保养会所"
["idc"]=>
int(1)
["status"]=>
int(1)
["total"]=>
int(0)
["appkey"]=>
NULL
["appuri"]=>
NULL
["create_by"]=>
NULL
["create_at"]=>
string(19) "2019-02-15 15:25:19"
["signature"]=>
string(48) "小时候有个梦想,长大当个程序员。"
["uid"]=>
int(1)
["update_time"]=>
int(1551173412)
["create_time"]=>
NULL
["update_count"]=>
int(14)
["MiniProgramInfo"]=>
NULL
["type"]=>
int(1)
}
}
~~~
~~~
$_MODULE
array(2) {
["addon_info"]=>
array(16) {
["id"]=>
int(24)
["addon"]=>
string(8) "sys_demo"
["addon_price"]=>
NULL
["create_time"]=>
NULL
["type"]=>
int(2)
["addon_name"]=>
string(8) "sys_demo"
["path"]=>
string(26) "sys_demo/WechatAdmin/index"
["description"]=>
string(1) "1"
["pic"]=>
NULL
["mounts"]=>
NULL
["sort"]=>
int(1)
["sort_name"]=>
string(15) "微信公众号"
["template_id"]=>
NULL
["menu"]=>
NULL
["status"]=>
int(3)
["setting"]=>
string(20) "{"author":"daichen"}"
}
["addon_wechataccount_setting"]=>
array(13) {
["id"]=>
int(103)
["addon_id"]=>
int(24)
["acid"]=>
int(26)
["trade_no"]=>
NULL
["user_id"]=>
int(1)
["mounts"]=>
NULL
["is_free"]=>
int(0)
["remaining_click"]=>
NULL
["auth_type"]=>
int(2)
["setting"]=>
NULL
["order_id"]=>
NULL
["create_time"]=>
NULL
["update_time"]=>
NULL
}
}
~~~