mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]修改第三方平台服务案例
This commit is contained in:
parent
667b1ee132
commit
d69c1fc656
@ -12,11 +12,43 @@
|
||||
// | github开源项目:https://github.com/zoujingli/WeChatDeveloper
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
$sql = <<<SQL
|
||||
CREATE TABLE `wechat_config` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`authorizer_appid` varchar(100) DEFAULT NULL COMMENT '公众号APPID',
|
||||
`authorizer_access_token` varchar(200) DEFAULT NULL COMMENT '公众号Token',
|
||||
`authorizer_refresh_token` varchar(200) DEFAULT NULL COMMENT '公众号刷新Token',
|
||||
`func_info` varchar(100) DEFAULT NULL COMMENT '公众号集权',
|
||||
`nick_name` varchar(50) DEFAULT NULL COMMENT '公众号昵称',
|
||||
`head_img` varchar(200) DEFAULT NULL COMMENT '公众号头像',
|
||||
`expires_in` bigint(20) DEFAULT NULL COMMENT 'Token有效时间',
|
||||
`service_type` tinyint(2) DEFAULT NULL COMMENT '公众号实际类型',
|
||||
`service_type_info` tinyint(2) DEFAULT NULL COMMENT '服务类型信息',
|
||||
`verify_type` tinyint(2) DEFAULT NULL COMMENT '公众号实际认证类型',
|
||||
`verify_type_info` tinyint(2) DEFAULT NULL COMMENT '公众号认证类型',
|
||||
`user_name` varchar(100) DEFAULT NULL COMMENT '众众号原始账号',
|
||||
`alias` varchar(100) DEFAULT NULL COMMENT '公众号别名',
|
||||
`qrcode_url` varchar(200) DEFAULT NULL COMMENT '公众号二维码地址',
|
||||
`business_info` varchar(255) DEFAULT NULL,
|
||||
`principal_name` varchar(255) DEFAULT NULL COMMENT '公司名称',
|
||||
`idc` tinyint(1) unsigned DEFAULT NULL,
|
||||
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1正常授权,0取消授权)',
|
||||
`total` bigint(20) unsigned DEFAULT '0' COMMENT '统计调用次数',
|
||||
`appkey` char(32) DEFAULT NULL COMMENT '接口KEY',
|
||||
`appuri` varchar(255) DEFAULT NULL COMMENT '响应接口APP',
|
||||
`create_by` bigint(20) DEFAULT NULL COMMENT '创建人ID',
|
||||
`create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `index_wechat_config_authorizer_appid` (`authorizer_appid`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='公众号授权参数';
|
||||
SQL;
|
||||
|
||||
try {
|
||||
|
||||
// 1. 手动加载入口文件
|
||||
include "../include.php";
|
||||
|
||||
|
||||
$config = [
|
||||
'component_appid' => 'test',
|
||||
'component_token' => 'test',
|
||||
|
Loading…
x
Reference in New Issue
Block a user