|
@@ -12,7 +12,7 @@ class refill_statsModel extends Model
|
|
|
|
|
|
public function latest_record_time()
|
|
|
{
|
|
|
- return $this->field('*')->where(['stat_id' => ['gt', 0], 'type' => 'system'])->order('stat_id desc')->limit(0)->find();
|
|
|
+ return $this->field('*')->where(['stat_id' => ['gt', 0], 'type' => 'system'])->order('time_stamp desc')->limit(0)->find();
|
|
|
}
|
|
|
|
|
|
public function getStatsInfo($condition = [], $fields = '*', $master = false, $lock = false)
|