no message
This commit is contained in:
parent
f909f7eb2c
commit
7897be7e9b
@ -41,7 +41,7 @@ class CronController
|
||||
$s = $v;
|
||||
}
|
||||
|
||||
$h = "00";
|
||||
// $h = "00";
|
||||
//// test end
|
||||
|
||||
if ($h == "00") {
|
||||
|
||||
@ -318,6 +318,7 @@ class SakaiController
|
||||
$s = "/cron#test";
|
||||
$s = "/book#main";
|
||||
$s = "/book#up__3";
|
||||
$s = "/book#main";
|
||||
// $s = "war 8";
|
||||
// $s = "no 9";
|
||||
// $s = "detail__all 1";
|
||||
|
||||
@ -126,18 +126,36 @@ class Book extends Model
|
||||
// order
|
||||
if ($oParentRag->order == "rank_todo") {
|
||||
|
||||
$sTodoOrder = BookOption::_hit("order_rank_todo");
|
||||
$aTodoOrder = explode(",", $sTodoOrder);
|
||||
$sTodoOrder = implode(",", array_reverse($aTodoOrder));
|
||||
$sOrderRank = BookOption::_hit("order_rank_todo");
|
||||
// $aTodoOrder = explode(",", $sTodoOrder);
|
||||
// $sTodoOrder = implode(",", array_reverse($aTodoOrder));
|
||||
//
|
||||
// $oSelf = $oSelf->orderByRaw("FIELD(rank, " . $sTodoOrder . ") DESC, (rank IS NULL) ASC");
|
||||
// $oSelf = $oSelf->orderByRaw("fire DESC, (fire IS NULL) ASC");
|
||||
//
|
||||
// $sOrder = "no";
|
||||
// $sOrderType = "asc";
|
||||
|
||||
$oSelf = $oSelf->orderByRaw("FIELD(rank, " . $sTodoOrder . ") DESC, (rank IS NULL) ASC");
|
||||
$oSelf = $oSelf->orderByRaw("fire DESC, (fire IS NULL) ASC");
|
||||
// 默认也rank排序
|
||||
} else {
|
||||
|
||||
$sOrder = "no";
|
||||
$sOrderType = "asc";
|
||||
$sOrderRank = BookOption::_hit("order_rank");
|
||||
|
||||
// tomd($sOrderRank, 1);
|
||||
}
|
||||
|
||||
|
||||
// $sOrderRank = BookOption::_hit("order_rank_todo");
|
||||
$aOrderRank = explode(",", $sOrderRank);
|
||||
$sOrderRank = implode(",", array_reverse($aOrderRank));
|
||||
|
||||
$oSelf = $oSelf->orderByRaw("FIELD(rank, " . $sOrderRank . ") DESC, (rank IS NULL) ASC");
|
||||
$oSelf = $oSelf->orderByRaw("fire DESC, (fire IS NULL) ASC");
|
||||
|
||||
$sOrder = "no";
|
||||
$sOrderType = "asc";
|
||||
|
||||
|
||||
$oSelf = $oSelf->orderBy($sOrder, $sOrderType);
|
||||
|
||||
$oSelf = $oSelf->orderBy("updated_at", "desc");
|
||||
|
||||
@ -1848,17 +1848,21 @@ class Book extends Base {
|
||||
$aMap = [
|
||||
"war" => "🔴",
|
||||
"red" => "🔴",
|
||||
"tip" => "🟣",
|
||||
"gem" => "🟣",
|
||||
"glod" => "🟡",
|
||||
"iron" => "🟤",
|
||||
"action" => "🟢",
|
||||
"wait" => "⚪️",
|
||||
// "block" => "⚫️",
|
||||
"keep" => "🟡",
|
||||
"tip" => "🟣",
|
||||
"glod" => "🟡",
|
||||
"track" => "🟤",
|
||||
"iron" => "🟤",
|
||||
"block" => "⚫️",
|
||||
];
|
||||
|
||||
// 'war','red','tip','gem','action','wait','keep','glod','track','iron','block',
|
||||
|
||||
// 'war','red','action','tip','keep','track','wait','none'
|
||||
|
||||
if (!empty($aMap[$sRank])) {
|
||||
$sRst = $aMap[$sRank];
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user