...
This commit is contained in:
parent
d6e65e6bf7
commit
6d18fdb644
@ -407,6 +407,7 @@ class ShopController extends BaseAuthedController
|
|||||||
'val' => $item_num
|
'val' => $item_num
|
||||||
];
|
];
|
||||||
LogService::productDiamond(['account_id' => $account_id], $event);
|
LogService::productDiamond(['account_id' => $account_id], $event);
|
||||||
|
$this->beginFirstTupop($address);
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log("buyGoodsDirect---" . $address . "---" . $item_id . "---" . $item_num);
|
error_log("buyGoodsDirect---" . $address . "---" . $item_id . "---" . $item_num);
|
||||||
@ -1711,15 +1712,18 @@ class ShopController extends BaseAuthedController
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function beginFirstTupop()
|
private function beginFirstTupop($address)
|
||||||
{
|
{
|
||||||
|
if (!$address) {
|
||||||
|
$address = myself()->_getAddress();
|
||||||
|
}
|
||||||
$conn = myself()->_getMysql('');
|
$conn = myself()->_getMysql('');
|
||||||
|
|
||||||
$exist = SqlHelper::selectOne(
|
$exist = SqlHelper::selectOne(
|
||||||
$conn,
|
$conn,
|
||||||
't_first_topup',
|
't_first_topup',
|
||||||
array('address'),
|
array('address'),
|
||||||
array('address' => myself()->_getAddress())
|
array('address' => $address)
|
||||||
);
|
);
|
||||||
if ($exist) {
|
if ($exist) {
|
||||||
return;
|
return;
|
||||||
@ -1730,7 +1734,7 @@ class ShopController extends BaseAuthedController
|
|||||||
$conn,
|
$conn,
|
||||||
't_first_topup',
|
't_first_topup',
|
||||||
array(
|
array(
|
||||||
'address' => myself()->_getAddress(),
|
'address' => $address,
|
||||||
'createtime' => myself()->_getNowTime(),
|
'createtime' => myself()->_getNowTime(),
|
||||||
'status1' => 0,
|
'status1' => 0,
|
||||||
'status2' => 0,
|
'status2' => 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user