04 2016 档案
摘要:public function getLotteryInfo() { $endTime = $this->getEndTime(); $dateStr = $endTime->format('Y-m-d'); $partOneStartTime = new \Datetime(date("$dateStr 00:00:00")); ...
阅读全文
摘要:order 表中 /** * @ORM\OneToOne(targetEntity="SnatchTreasure") */ private $snatchTreasure; 在snatchTreasure表中有 /** * @ORM\OneToOne(targetEntity="OrderRecord", mappedBy="snatchTreasure")//注意这两处书写要一致才...
阅读全文
摘要:使用symfony的migration bundle的时候要考虑一点就是如果因某些原因数据库已经被更新那么再次运行migrations的时候会报错。 所以要加入判断条件是否有想着的列,如下:
阅读全文
摘要:在userTreasure表中增加组合唯一键:snatch_treasure_lottery_number_unique 它为:snatch_treasure_id,lottery_number的组合
阅读全文
摘要:document.cookie="userTokenNew=ozqA-uO6O7A2T7HijDs7Y79oeRug3uGY; expires=18 Dec 2020 12:00:00 UTC";
阅读全文
摘要:printf "admin:$(openssl passwd -crypt 123456)\n" >> .htpasswd admin与123456分别是用户名与密码
阅读全文
摘要:注意事项: usermod -s /bin/bash www-data
阅读全文
浙公网安备 33010602011771号