Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ecdiy committed Nov 7, 2018
1 parent 870ce17 commit b8cabd5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
5 changes: 4 additions & 1 deletion core/Cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ func (job *Job) Http() {
html, e := http.Get(getUrl)
if e == nil {
fd := &xtools.FmtData{Dao: job.dao}
fd.Spit(job.job.Node("Fmt"), string(html))
fmt := job.job.Node("Fmt")
if fmt != nil {
fd.Spit(job.job.Node("Fmt"), string(html))
}
} else {
seelog.Error("HttpGet失败", getUrl)
}
Expand Down
27 changes: 25 additions & 2 deletions demos/demo/goserver.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Target Server Type : MYSQL
Target Server Version : 50721
File Encoding : 65001
Date: 2018-11-05 23:09:13
Date: 2018-11-07 13:30:05
*/

SET FOREIGN_KEY_CHECKS=0;
Expand Down Expand Up @@ -38,6 +38,29 @@ CREATE TABLE `GkUser` (
-- ----------------------------
INSERT INTO `GkUser` VALUES ('11047', 'test', 'test', 'a', 'a', 'a', '2018-11-05 22:15:56', '0');

-- ----------------------------
-- Table structure for Project
-- ----------------------------
DROP TABLE IF EXISTS `Project`;
CREATE TABLE `Project` (
`Id` bigint(20) NOT NULL AUTO_INCREMENT,
`HomeUrl` varchar(255) DEFAULT NULL,
`Name` varchar(160) DEFAULT NULL,
`CreateAt` datetime DEFAULT NULL,
`CatId` bigint(20) DEFAULT NULL,
`Star` varchar(16) DEFAULT NULL,
`Site` varchar(64) DEFAULT NULL,
`Summary` mediumtext,
`ItemCount` int(11) NOT NULL DEFAULT '0' COMMENT '文档总数',
`UserId` bigint(20) DEFAULT '0',
PRIMARY KEY (`Id`),
UNIQUE KEY `HomeUrl` (`HomeUrl`)
) ENGINE=InnoDB AUTO_INCREMENT=324 DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Records of Project
-- ----------------------------

-- ----------------------------
-- Table structure for Token
-- ----------------------------
Expand All @@ -54,7 +77,7 @@ CREATE TABLE `Token` (
-- ----------------------------
-- Records of Token
-- ----------------------------
INSERT INTO `Token` VALUES ('11047', 'web', '381f3e654474d9c9927b3b759df4165e', '2018-11-05 23:02:38');
INSERT INTO `Token` VALUES ('11047', 'web', 'c537247730d380dd47ab49c8b766486d', '2018-11-06 12:48:58');

-- ----------------------------
-- Procedure structure for GetMailAjax
Expand Down

0 comments on commit b8cabd5

Please sign in to comment.