Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a23aa77

Browse files
committed
Go每日一题完成
1 parent b592faf commit a23aa77

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/db.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ CREATE TABLE `interview_question` (
845845
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
846846
`sn` bigint unsigned NOT NULL DEFAULT 0 COMMENT '题目序号,程序生成',
847847
`question` varchar(1022) NOT NULL DEFAULT '' COMMENT '问题',
848-
`answer` varchar(4094) NOT NULL DEFAULT '' COMMENT '答案',
848+
`answer` text NOT NULL COMMENT '答案',
849849
`level` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '问题难易级别:0-低;1-中;2-高',
850850
`viewnum` int unsigned NOT NULL DEFAULT 0 COMMENT '浏览数',
851851
`cmtnum` int unsigned NOT NULL DEFAULT 0 COMMENT '评论数',

template/interview/question.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ <h3>答案解析:</h3>
102102
"/rank/view"
103103
];
104104

105+
var keyprefix = 'interview';
106+
var objid = {{.question.Id}};
107+
105108
$(function(){
106109
loadComments();
107110

0 commit comments

Comments
 (0)