1
This commit is contained in:
parent
80717d8cf0
commit
e2478b0757
@ -23,17 +23,17 @@ class BcOrder {
|
|||||||
return $row;
|
return $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function upsert($OrderId, $fieldsKv){
|
public static function upsert($orderId, $fieldsKv){
|
||||||
SqlHelper::upsert
|
SqlHelper::upsert
|
||||||
(myself()->_getSelfMysql(),
|
(myself()->_getSelfMysql(),
|
||||||
't_bc_order',
|
't_bc_order',
|
||||||
array(
|
array(
|
||||||
'order_id' => $OrderId
|
'order_id' => $orderId
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'order_id' => $OrderId,
|
'order_id' => $orderId,
|
||||||
'order_type' => getXVal($fieldsKv,'order_type',0),
|
'order_type' => getXVal($fieldsKv,'order_type',0),
|
||||||
'account_id' => myself()->_getAccountId(),
|
'account_id' => myself()->_getAccountId(),
|
||||||
'address' => myself()->_getAddress(),
|
'address' => myself()->_getAddress(),
|
||||||
@ -48,12 +48,12 @@ class BcOrder {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function update($OrderId, $fieldsKv){
|
public static function update($orderId, $fieldsKv){
|
||||||
SqlHelper::upsert
|
SqlHelper::update
|
||||||
(myself()->_getMysql(''),
|
(myself()->_getMysql(''),
|
||||||
't_bc_order',
|
't_bc_order',
|
||||||
array(
|
array(
|
||||||
'order_id' => $OrderId
|
'order_id' => $orderId
|
||||||
),
|
),
|
||||||
$fieldsKv
|
$fieldsKv
|
||||||
);
|
);
|
||||||
|
@ -47,7 +47,7 @@ class GameItemMallBuyOk {
|
|||||||
'status' => 1
|
'status' => 1
|
||||||
));
|
));
|
||||||
if ($orderDb['order_type'] == BcOrder::SPEC_ORDER_TYPE) {
|
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']) {
|
switch ($extData['mode']) {
|
||||||
case BcOrder::SHOP_BUY_MODE_NORMAL:
|
case BcOrder::SHOP_BUY_MODE_NORMAL:
|
||||||
{
|
{
|
||||||
@ -94,7 +94,7 @@ class GameItemMallBuyOk {
|
|||||||
if ($itemId == V_ITEM_DIAMOND) {
|
if ($itemId == V_ITEM_DIAMOND) {
|
||||||
$event = [
|
$event = [
|
||||||
'name' => LogService::CEBG_TO_DIAMOND,
|
'name' => LogService::CEBG_TO_DIAMOND,
|
||||||
'val' => $item_num
|
'val' => $itemNum
|
||||||
];
|
];
|
||||||
LogService::productDiamondCallback(
|
LogService::productDiamondCallback(
|
||||||
['account_id' => $accountId],
|
['account_id' => $accountId],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user