|
|
@@ -112,7 +112,9 @@ class GzcAddByBillCommand extends Command
|
|
112
|
112
|
'pension' => $pension,
|
|
113
|
113
|
'order_type' => $typeShop,
|
|
114
|
114
|
'out_trade_no' => $online['order_sn'],
|
|
115
|
|
- 'link_id' => $bill['bill_id']
|
|
|
115
|
+ 'link_id' => $bill['bill_id'],
|
|
|
116
|
+ 'create_time' => date('Y-m-d H:i:s'),
|
|
|
117
|
+ 'update_time' => date('Y-m-d H:i:s')
|
|
116
|
118
|
]);
|
|
117
|
119
|
|
|
118
|
120
|
Db::name('user_bill')->where('bill_id', $bill['bill_id'])->update([
|
|
|
@@ -127,7 +129,6 @@ class GzcAddByBillCommand extends Command
|
|
127
|
129
|
{
|
|
128
|
130
|
$config = $orderMap[$typeShop] ?? $orderMap[0];
|
|
129
|
131
|
$query = Db::table($config['table'])
|
|
130
|
|
- ->where('uid', $bill['uid'])
|
|
131
|
132
|
->where($config['field_map']['order_sn'] ?? 'order_sn', $bill['order_sn']);
|
|
132
|
133
|
|
|
133
|
134
|
if (!empty($config['condition'])) {
|