04 2016 档案

摘要:public function getLotteryInfo() { $endTime = $this->getEndTime(); $dateStr = $endTime->format('Y-m-d'); $partOneStartTime = new \Datetime(date("$dateStr 00:00:00")); ... 阅读全文
posted @ 2016-04-29 14:39 S大好人S 阅读(155) 评论(0) 推荐(0)
摘要:order 表中 /** * @ORM\OneToOne(targetEntity="SnatchTreasure") */ private $snatchTreasure; 在snatchTreasure表中有 /** * @ORM\OneToOne(targetEntity="OrderRecord", mappedBy="snatchTreasure")//注意这两处书写要一致才... 阅读全文
posted @ 2016-04-27 19:52 S大好人S 阅读(100) 评论(0) 推荐(0)
摘要:使用symfony的migration bundle的时候要考虑一点就是如果因某些原因数据库已经被更新那么再次运行migrations的时候会报错。 所以要加入判断条件是否有想着的列,如下: 阅读全文
posted @ 2016-04-26 15:11 S大好人S 阅读(891) 评论(0) 推荐(0)
摘要:在userTreasure表中增加组合唯一键:snatch_treasure_lottery_number_unique 它为:snatch_treasure_id,lottery_number的组合 阅读全文
posted @ 2016-04-08 15:51 S大好人S 阅读(137) 评论(0) 推荐(0)
摘要:document.cookie="userTokenNew=ozqA-uO6O7A2T7HijDs7Y79oeRug3uGY; expires=18 Dec 2020 12:00:00 UTC"; 阅读全文
posted @ 2016-04-06 10:21 S大好人S 阅读(218) 评论(0) 推荐(0)
摘要:printf "admin:$(openssl passwd -crypt 123456)\n" >> .htpasswd admin与123456分别是用户名与密码 阅读全文
posted @ 2016-04-05 08:31 S大好人S 阅读(242) 评论(0) 推荐(0)
摘要:注意事项: usermod -s /bin/bash www-data 阅读全文
posted @ 2016-04-03 11:39 S大好人S 阅读(110) 评论(0) 推荐(0)