update order entity parse
This commit is contained in:
@@ -116,10 +116,10 @@ class Order extends EntityParse
|
|||||||
'coupon_amount' => 0,
|
'coupon_amount' => 0,
|
||||||
'voucher_amount' => 0,
|
'voucher_amount' => 0,
|
||||||
'order_type_id' => OrderType::Normor_Order->value,
|
'order_type_id' => OrderType::Normor_Order->value,
|
||||||
'created_date' => $record['created'],
|
'created_date' => Carbon::parse($record['created'], $this->getStore()->getTimezoneString())->format('Y-m-d H:i:sP'),
|
||||||
'updated_date' => $record['modified'] ?? null,
|
'updated_date' => isset($record['modified']) ? Carbon::parse($record['modified'], $this->getStore()->getTimezoneString())->format('Y-m-d H:i:sP') : null,
|
||||||
'paid_date' => $record['pay_time'] ?? null,
|
'paid_date' => isset($record['pay_time']) ? Carbon::parse($record['pay_time'], $this->getStore()->getTimezoneString())->format('Y-m-d H:i:sP') : null,
|
||||||
'shipping_date' => $record['consign_time'] ?? null,
|
'shipping_date' => isset($record['consign_time']) ? Carbon::parse($record['consign_time'], $this->getStore()->getTimezoneString())->format('Y-m-d H:i:sP') : null,
|
||||||
'zipcode' => $record['receiver_zip'] ?? '',
|
'zipcode' => $record['receiver_zip'] ?? '',
|
||||||
'city' => $record['receiver_city'] ?? '',
|
'city' => $record['receiver_city'] ?? '',
|
||||||
'province' => $record['receiver_state'] ?? '',
|
'province' => $record['receiver_state'] ?? '',
|
||||||
@@ -128,8 +128,8 @@ class Order extends EntityParse
|
|||||||
'ext' => null,
|
'ext' => null,
|
||||||
'buyer_user_id' => $record['buyer_open_uid'],
|
'buyer_user_id' => $record['buyer_open_uid'],
|
||||||
'hash' => \md5($raw),
|
'hash' => \md5($raw),
|
||||||
'created_at' => date('Y-m-d H:i:s'),
|
'created_at' => Carbon::now()->format('Y-m-d H:i:sP'),
|
||||||
'updated_at' => date('Y-m-d H:i:s'),
|
'updated_at' => Carbon::now()->format('Y-m-d H:i:sP'),
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user