plan order send_aggs_biz_ding_piao_rpt support param
This commit is contained in:
@@ -221,7 +221,7 @@ class Order extends CI_Controller{
|
||||
|
||||
/**
|
||||
* Notes:向飞书发送小狸播报
|
||||
* https://liche-api-dev.xiaoyu.com/plan/order/send_aggs_biz_ding_piao_rpt?sd=1&test=1
|
||||
* https://liche-api-dev.xiaoyu.com/plan/order/send_aggs_biz_ding_piao_rpt?sd=1
|
||||
* https://api.liche.cn/plan/order/send_aggs_biz_ding_piao_rpt
|
||||
*/
|
||||
public function send_aggs_biz_ding_piao_rpt(){
|
||||
@@ -243,17 +243,15 @@ class Order extends CI_Controller{
|
||||
#$redis->save($redisKey, 1, 60 * 10); # 暂不考虑“执行时间过长时重复执行”
|
||||
|
||||
$today_start = $today_end = $total_start = $total_end = $title_today = $title_ding_today = $title_ding = $title_piao_today = $title_piao = '';
|
||||
if ($params['test']){
|
||||
$today_start = "2021-12-01 00:00:00";
|
||||
$today_end = '2022-06-06';
|
||||
$total_start = "2021-12-01 00:00:00";
|
||||
$total_end = date('Y-m-01 00:00:00', strtotime('+1 month'));
|
||||
$title_today = date('m月d日');
|
||||
$title_ding_today = '当日订单';
|
||||
$title_ding = '月累计订单';
|
||||
$title_piao_today = '当日开票';
|
||||
$title_piao = '月累计开票';
|
||||
}
|
||||
$params['today_start'] && $today_start = $params['today_start'];
|
||||
$params['today_end'] && $today_end = $params['today_end'];
|
||||
$params['total_start'] && $total_start = $params['total_start'];
|
||||
$params['total_end'] && $total_end = $params['total_end'];
|
||||
$params['title_today'] && $title_today = $params['title_today'];
|
||||
$params['title_ding_today'] && $title_ding_today = $params['title_ding_today'];
|
||||
$params['title_ding'] && $title_ding = $params['title_ding'];
|
||||
$params['title_piao_today'] && $title_piao_today = $params['title_piao_today'];
|
||||
$params['title_piao'] && $title_piao = $params['title_piao'];
|
||||
|
||||
$this->load->library('receiver/orders_v2_entity');
|
||||
$data = $this->orders_v2_entity->aggs_biz_ding_piao_rpt($today_start, $today_end, $total_start, $total_end,
|
||||
@@ -278,6 +276,9 @@ class Order extends CI_Controller{
|
||||
echo '<img src="/' . $img_path_piao . '"/>';echo '<br>';
|
||||
$img_path_arr[] = $img_path_piao;
|
||||
}
|
||||
if ($params['notsend']){
|
||||
return true;
|
||||
}
|
||||
|
||||
# https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
|
||||
# 测试图片 img_ecffc3b9-8f14-400f-a014-05eca1a4310g {"StatusCode":0,"StatusMessage":"success"}
|
||||
|
||||
Reference in New Issue
Block a user