更新一些说明

This commit is contained in:
unknown 2024-04-22 17:36:14 +08:00
parent c78fe5411e
commit a5779dd6ff
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
库结构
1目前只建了一个收入表后期根据需要添加
CREATE TABLE IF NOT EXISTS `wx_app_advertisement` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_id` int(11) NOT NULL COMMENT '应用id',
`date` int(8) NOT NULL COMMENT '广告日期',
`ad_slot` varchar(30) NOT NULL COMMENT '广告位类型名称',
`slot_id` bigint(16) NOT NULL COMMENT '广告位类型id',
`income` int(11) NOT NULL DEFAULT '0' COMMENT '收入(分)',
`req_succ_count` int(11) NOT NULL DEFAULT '0' COMMENT '拉取量',
`exposure_count` int(11) NOT NULL DEFAULT '0' COMMENT '曝光量',
`click_count` int(11) NOT NULL DEFAULT '0' COMMENT '点击量',
`ecpm` double NOT NULL DEFAULT '0' COMMENT '广告千次曝光收益(分',
`updated_at` int(11) NOT NULL COMMENT '添加时间',
PRIMARY KEY (`id`),
KEY `date` (`date`),
KEY `app_id` (`app_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='广告收入表';
2wx.go--单个应用一段时间内,入库每个广告位置的收入。
3,根据需要修改里面参数包括小程序的appID,小程序密钥 appSecret抓取日期