This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace ZM\Annotation\CQ; | |
use Attribute; | |
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor; | |
use Doctrine\Common\Annotations\Annotation\Required; | |
use ZM\Annotation\AnnotationBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function doSign() { | |
$sign_data = DP::query("SELECT * FROM sign_data WHERE user_id = ?", [$this->getUserId()]); | |
if ($sign_data == []) $sign_data = $this->initData(); | |
else $sign_data = $sign_data[0]; | |
$today_zero = TimeManager::getTodayZero(); | |
if ($sign_data["last_sign"] >= $today_zero) return false;//签过了 | |
$last_day_zero = $today_zero - 86400; | |
if ($sign_data["last_sign"] >= $last_day_zero) {//是不是连签 | |
$sign_data["sign_day_long"]++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: jerry | |
* Date: 2018/4/10 | |
* Time: 14:35 | |
*/ | |
namespace crazybot\mods; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// TODO: 还没写 |
NewerOlder