是否是主播调整
This commit is contained in:
parent
d3429f6c1b
commit
fc07f7f524
|
@ -381,7 +381,7 @@ class SpiderMt extends Command
|
|||
|
||||
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
|
||||
if (empty($item)) {
|
||||
$order->is_zhibo = $this->zhibo($order->product_name, $order->os);
|
||||
//$order->is_zhibo = $this->zhibo($order->product_name, $order->os);
|
||||
|
||||
$oldMobile = orders::where("os", $order->os)->where("mobile", $order->mobile)
|
||||
->where("create_time", '>=', time() - 24 * 3600 * 3)->find();
|
||||
|
|
|
@ -21,9 +21,9 @@ class Orders extends base
|
|||
// 0 1 2 3 4 5 6 7 8
|
||||
|
||||
const AllOssStatusSql = [
|
||||
1 => '((os=1 and order_status=3) or (os=2 and order_status=4) or (os=3 and order_status=1))', //待使用
|
||||
2 => '((os=1 and order_status=4) or (os=2 and order_status=5) or (os=3 and order_status=2))', //已核销
|
||||
3 => '((os=1 and order_status=5) or (os=3 and order_status=4))' //已退款(快手暂无已退款状态)
|
||||
1 => '((os=1 and order_status=3) or (os=2 and order_status=4) or (os in ("3", "5") and order_status=1))', //待使用
|
||||
2 => '((os=1 and order_status=4) or (os=2 and order_status=5) or (os in ("3", "5") and order_status=2))', //已核销
|
||||
3 => '((os=1 and order_status=5) or (os in ("3", "5") and order_status=4))' //已退款(快手暂无已退款状态)
|
||||
];
|
||||
|
||||
const StatusName = ['待跟进', '跟进中', '已核销', '核销失败', '放弃跟单'];
|
||||
|
|
|
@ -103,6 +103,7 @@ class Meituan {
|
|||
$item->order_status = $order->orderStatus;
|
||||
$item->refund_status = $order->refundStatus;
|
||||
$item->category_desc = $order->categoryDesc;
|
||||
$item->is_zhibo = $order->bizOrderChannel == 5 ? 1 : 0; // 是否直播(5-视频号,3-小程序)
|
||||
$item->asset_price = $order->orderStatus == 4 ? $order->totalPrice: 0; //已核销订单,核销金额为订单金额
|
||||
|
||||
$_list[] = $item;
|
||||
|
|
Loading…
Reference in New Issue