bourse stock
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
579 B

<?php
namespace app\model;
/**
* @property int id
* @property int bank_drawal_fee
* @property int digital_drawal_fee
* @property int bank_recharge_fee
* @property int digital_recharge_fee
*/
class DrawalSettingModel extends BaseModel
{
protected $name = 'drawal_setting';
protected $pk = 'id';
public static function getDrawalFee():array
{
$info = self::where('id',1)->field('bank_drawal_fee,digital_drawal_fee,min_recharge,min_drawal')->find();
if(empty($info)){
return [];
}
return $info->toArray();
}
}