1657831019, 10304 => 1657833490, 10250 => 1657840392, 1093 => 1657848109, 10105 => 1657848384, 10281 => 1657849018, 10201 => 1657849281, 10284 => 1657849396, 10283 => 1657849577, 10264 => 1657849608, 10289 => 1657850505, 10131 => 1657850569, 10222 => 1657850581, 10263 => 1657850658, 10184 => 1657850674, 10305 => 1657850680 ]; $val = json_encode($mtimes); wkcachex('stat-earliest-ordertime', $val, 'refill-'); } public function testDebts() { $debts_stoped = function ($mchid) { if($mchid > 0) { $ret = rcache('merchant-debt-judge', 'refill-',"{$mchid}"); if(empty($ret)) { return false; } $stoped = intval($ret[$mchid]); return ($stoped === 1); } else { return false; } }; wcache('merchant-debt-judge', [1 => 1], 'refill-'); $ret = $debts_stoped(3); $ret = $debts_stoped(1); $ret = $debts_stoped(2); wcache('merchant-debt-judge', [2 => 0], 'refill-'); $ret = $debts_stoped(2); } public function testQuality() { $quality = new refill\quality_ploy(); $all = $quality->qualities(refill\Quality::DefSuccess); refill\PolicyUtil::mixed_remove_last(refill\Quality::DefSuccess, [1, 2], $all); } public function testMChannels() { $mchannel = new refill\mchannel(); } public function testDbConnect() { $mod = Model(); $result = $mod->table('refill_order')->limit(10)->select(); Log::record('',Log::DEBUG); } }