This commit is contained in:
aozhiwei 2023-08-07 14:35:46 +08:00
parent 80717d8cf0
commit e2478b0757
2 changed files with 8 additions and 8 deletions

View File

@ -23,17 +23,17 @@ class BcOrder {
return $row;
}
public static function upsert($OrderId, $fieldsKv){
public static function upsert($orderId, $fieldsKv){
SqlHelper::upsert
(myself()->_getSelfMysql(),
't_bc_order',
array(
'order_id' => $OrderId
'order_id' => $orderId
),
array(
),
array(
'order_id' => $OrderId,
'order_id' => $orderId,
'order_type' => getXVal($fieldsKv,'order_type',0),
'account_id' => myself()->_getAccountId(),
'address' => myself()->_getAddress(),
@ -48,12 +48,12 @@ class BcOrder {
);
}
public static function update($OrderId, $fieldsKv){
SqlHelper::upsert
public static function update($orderId, $fieldsKv){
SqlHelper::update
(myself()->_getMysql(''),
't_bc_order',
array(
'order_id' => $OrderId
'order_id' => $orderId
),
$fieldsKv
);

View File

@ -47,7 +47,7 @@ class GameItemMallBuyOk {
'status' => 1
));
if ($orderDb['order_type'] == BcOrder::SPEC_ORDER_TYPE) {
$extData = json_decode($order['ext_data'], true);
$extData = json_decode($orderDb['ext_data'], true);
switch ($extData['mode']) {
case BcOrder::SHOP_BUY_MODE_NORMAL:
{
@ -94,7 +94,7 @@ class GameItemMallBuyOk {
if ($itemId == V_ITEM_DIAMOND) {
$event = [
'name' => LogService::CEBG_TO_DIAMOND,
'val' => $item_num
'val' => $itemNum
];
LogService::productDiamondCallback(
['account_id' => $accountId],