game2006api/webapp/models/GoldBullion.php
aozhiwei 8a3bf19ccb 1
2024-06-11 11:49:13 +08:00

32 lines
677 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()
{
$address = myself()->_getAddress();
if (empty($address)) {
return;
}
$rows = SqlHelper::ormSelect(
myself()->_getSelfMysql(),
't_gold_bullion',
array(
'open_address' => myself()->_getAddress(),
'open_status' => self::OPEN_STATUS_PENDING,
)
);
if (count($rows) > 0) {
}
}
}