28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
|
|
namespace models;
|
|
|
|
class GoldBullion extends BaseModel {
|
|
|
|
const OPEN_STATUS_SENT = 1;
|
|
const OPEN_STATUS_PENDING = 2;
|
|
const OPEN_STATUS_SEND_BEGIN = 3;
|
|
const OPEN_STATUS_SEND_END = 4;
|
|
|
|
public static function onLogin()
|
|
{
|
|
$rows = SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_gold_bullion',
|
|
array(
|
|
'open_address' => myself()->_getAddress(),
|
|
'open_status' => self::OPEN_STATUS_PENDING,
|
|
)
|
|
);
|
|
if (count($rows) > 0) {
|
|
|
|
}
|
|
}
|
|
|
|
}
|