1
This commit is contained in:
parent
ab1020c877
commit
8cc9c610cb
@ -8,22 +8,25 @@ use phpcommon\SqlHelper;
|
|||||||
class NftActive extends BaseModel
|
class NftActive extends BaseModel
|
||||||
{
|
{
|
||||||
public static function upsert($data){
|
public static function upsert($data){
|
||||||
if ($data['token_id']){
|
// if ($data['token_id']){
|
||||||
$where = array(
|
// $where = array(
|
||||||
'token_id' =>$data['token_id'],
|
// 'token_id' =>$data['token_id'],
|
||||||
'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
// 'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
||||||
);
|
// );
|
||||||
}else{
|
// }else{
|
||||||
$where = array(
|
// $where = array(
|
||||||
'uniid' =>$data['uniid'],
|
// 'uniid' =>$data['uniid'],
|
||||||
'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
// 'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
SqlHelper::upsert
|
SqlHelper::upsert
|
||||||
(myself()->_getSelfMysql(),
|
(myself()->_getSelfMysql(),
|
||||||
't_nft_active',
|
't_nft_active',
|
||||||
$where,
|
array(
|
||||||
|
'uniid' =>$data['uniid'],
|
||||||
|
'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user