edit-qyrobot-test

This commit is contained in:
lccsw
2022-08-08 17:15:44 +08:00
parent 248be51942
commit 5982c7690c
+4 -2
View File
@@ -511,7 +511,8 @@ class Qyrobot{
];
}
}
print_r($today_rows);
print_r($today_info);
$sql = "select brand_id,count(a.o_id) as total from (select o_id,min(pay_time) as pay_time from lc_app_liche_orders
where o_id>=10000 and status=1 and pid!=0 and pay_price>0 and pay_time!='0000-00-00 00:00:00' and type <> 4 and pay_price>{$min_price} group by o_id order by o_id desc) as a
left join lc_receiver_orders_v2 as b on a.o_id=b.id
@@ -520,7 +521,7 @@ class Qyrobot{
$month_count = 0;
$month_info = [];
if($month_rows){
foreach ($today_rows as $key => $val) {
foreach ($month_rows as $key => $val) {
$month_count += $val['total'];
$row = $this->ci->auto_brand_model->get(['id'=>$val['brand_id']],'name');
$month_info[] = [
@@ -545,6 +546,7 @@ class Qyrobot{
'month_count' => $month_count
];
$send_msg = $this->fbook_formart_v3($info,$type,$today_info,$month_info);
print_r($send_msg);exit;
$result = $this->send_fb($send_msg);
return $result;
}