是否是主播调整

This commit is contained in:
jianghanbo 2024-08-19 11:33:54 +08:00
parent d3429f6c1b
commit fc07f7f524
3 changed files with 8 additions and 7 deletions

View File

@ -381,7 +381,7 @@ class SpiderMt extends Command
$item = Orders::where('os', $order->os)->where('sn', $order->sn)->find(); $item = Orders::where('os', $order->os)->where('sn', $order->sn)->find();
if (empty($item)) { 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) $oldMobile = orders::where("os", $order->os)->where("mobile", $order->mobile)
->where("create_time", '>=', time() - 24 * 3600 * 3)->find(); ->where("create_time", '>=', time() - 24 * 3600 * 3)->find();

View File

@ -21,9 +21,9 @@ class Orders extends base
// 0 1 2 3 4 5 6 7 8 // 0 1 2 3 4 5 6 7 8
const AllOssStatusSql = [ const AllOssStatusSql = [
1 => '((os=1 and order_status=3) or (os=2 and order_status=4) or (os=3 and order_status=1))', //待使用 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=3 and order_status=2))', //已核销 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=3 and order_status=4))' //已退款(快手暂无已退款状态) 3 => '((os=1 and order_status=5) or (os in ("3", "5") and order_status=4))' //已退款(快手暂无已退款状态)
]; ];
const StatusName = ['待跟进', '跟进中', '已核销', '核销失败', '放弃跟单']; const StatusName = ['待跟进', '跟进中', '已核销', '核销失败', '放弃跟单'];

View File

@ -17,7 +17,7 @@ class Meituan {
} }
public function login() { public function login() {
} }
public function voucher($check_sn) { public function voucher($check_sn) {
@ -103,12 +103,13 @@ class Meituan {
$item->order_status = $order->orderStatus; $item->order_status = $order->orderStatus;
$item->refund_status = $order->refundStatus; $item->refund_status = $order->refundStatus;
$item->category_desc = $order->categoryDesc; $item->category_desc = $order->categoryDesc;
$item->is_zhibo = $order->bizOrderChannel == 5 ? 1 : 0; // 是否直播5-视频号3-小程序)
$item->asset_price = $order->orderStatus == 4 ? $order->totalPrice: 0; //已核销订单,核销金额为订单金额 $item->asset_price = $order->orderStatus == 4 ? $order->totalPrice: 0; //已核销订单,核销金额为订单金额
$_list[] = $item; $_list[] = $item;
} }
} }
return $_list; //返回半成品 return $_list; //返回半成品
} }
@ -132,7 +133,7 @@ class Meituan {
} }
$ch = curl_init($http); $ch = curl_init($http);
$header = [ $header = [
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36', 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',
'Sec-Ch-Ua-Platform: "Windows"', 'Sec-Ch-Ua-Platform: "Windows"',