13 lines
320 B
13 lines
320 B
<?php
|
|
|
|
namespace app\model;
|
|
|
|
class ContractSettingModel extends BaseModel
|
|
{
|
|
protected $name = 'contract_setting';
|
|
protected $pk = 'id';
|
|
|
|
public static function getSettingList(){
|
|
return self::where('id', '>', 0)->field('time_step,earnings_num')->order('time_step', 'asc')->select()->toArray();
|
|
}
|
|
}
|