28 lines
475 B
PHP
28 lines
475 B
PHP
<?php
|
|
|
|
|
|
namespace models;
|
|
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
use phpcommon;
|
|
use services\NumberService;
|
|
|
|
class RewardsCec extends BaseModel
|
|
{
|
|
|
|
public static function all($cb){
|
|
SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_hash_rate_reward',
|
|
array(
|
|
'account_id' => myself()->_getAccountId(),
|
|
),
|
|
function ($row) use($cb) {
|
|
$cb($row);
|
|
}
|
|
);
|
|
}
|
|
|
|
} |