记录测试情况
使用自己搭建的文件系统,在 github page 引用图片存在跨域问题,在手机上却没发现 后来在自己搭建文件服务器上的允许hexo,就不再跨域了 可能周末还是得把域名备案的事搞一下
1 2 3 4 5 6 7 CREATE TABLE IF NOT EXISTS `runoob_tbl`( `runoob_id` INT UNSIGNED AUTO_INCREMENT, `runoob_title` VARCHAR (100 ) NOT NULL , `runoob_author` VARCHAR (40 ) NOT NULL , `submission_date` DATE , PRIMARY KEY ( `runoob_id` ) )ENGINE= InnoDB DEFAULT CHARSET= utf8;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 package botimport ( "fmt" "time" ) type Bot struct { Skills map [int64 ]Skill Souls map [int64 ]Soul Status map [int64 ]Status DNA map [int64 ]DNA Feel map [int64 ]Feel Skill map [int64 ]Skill } func New () (bot *Bot) { bot = &Bot{ Skills: make (map [int64 ]Skill), Souls: make (map [int64 ]Soul), Status: make (map [int64 ]Status), DNA: make (map [int64 ]DNA), Feel: make (map [int64 ]Feel), Skill: make (map [int64 ]Skill), } return } func (b *Bot) Awake() { for ; b.Status[CoreStatus].statusType != DeadStatus; { fmt.Println(time.Now().Unix(), " i am alive" ) time.Sleep(1 * time.Second) } } func (b *Bot) reload() { b.loadFromFile() } func (b *Bot) loadFromFile() {} type Soul struct {} type DNA struct {} type Feel struct {} func (f *Feel) ou() {} type Skill struct { skillType int64 } const ( CoreStatus = 0 ) const ( DeadStatus = int64 (-1 ) ) type Status struct { statusType int64 }
看板娘配置 1 npm install --save hexo-helper-live2d