|
@@ -46,7 +46,7 @@ class SplitSale extends Command
|
|
|
->alias('a')
|
|
|
->leftJoin('platform b', 'b.id=a.platform_id')
|
|
|
->leftJoin('good_proof c', 'c.id=a.proof_id')
|
|
|
- ->field('a.*,b.platform_name,c.proof_url')
|
|
|
+ ->field('a.*,b.platform_name,b.use_type,c.proof_url')
|
|
|
->where([
|
|
|
['a.is_del', '=', 0],
|
|
|
['a.updatetime', '>=', date('Y-m-d H:i:s', time() - 5 * 60)],
|
|
@@ -228,6 +228,7 @@ class SplitSale extends Command
|
|
|
'order_type' => $sale['order_type'] ?? 0,
|
|
|
'order_source' => $this->order_source,
|
|
|
'platform_id' => $sale['platform_name'] ?? '',
|
|
|
+ 'platform_type' => $sale['use_type'] ?? '',
|
|
|
'good_code' => $sale['good_code'] ?? '',
|
|
|
'cat_id' => $sale['cat_id'] ?? 0,
|
|
|
'cat_name' => json_encode($this->_get_cat_list($sale['cat_id']), JSON_UNESCAPED_UNICODE),
|