diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index c92d76fb..6cb0b9ee 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -869,9 +869,9 @@ class Orders extends HD_Controller if($this->app_liche_orders_model->count(['status'=>1,'o_id'=>$row['id']])==1 && $money>=100){ //企业微信推送 $this->orders_status_entity->set_status($row['id'],0,1); if(date('Y-m-d',strtotime($pay_time))==date('Y-m-d')){ //当天 - $this->qyrobot->deposit_notify_v2($row['id']); + $this->qyrobot->deposit_notify_v3($row['id']); }else{ - $this->qyrobot->deposit_notify_v2($row['id'],1,$data['pay_time']); + $this->qyrobot->deposit_notify_v3($row['id'],1,$data['pay_time']); } } diff --git a/api/controllers/Welcome.php b/api/controllers/Welcome.php index 74a95a5c..b80b45fe 100755 --- a/api/controllers/Welcome.php +++ b/api/controllers/Welcome.php @@ -11,11 +11,5 @@ class Welcome extends CI_Controller { } public function test(){ - $oid = $this->input->get('oid'); - $this->load->library('qyrobot'); - $params['test'] = 1; - $qy = new Qyrobot($params); - $res = $qy->deposit_notify_v3($oid); - var_dump($res);exit; } } diff --git a/api/controllers/plan/Xzcall.php b/api/controllers/plan/Xzcall.php index 1a506f04..25f792b1 100644 --- a/api/controllers/plan/Xzcall.php +++ b/api/controllers/plan/Xzcall.php @@ -196,9 +196,9 @@ class Xzcall extends HD_Controller die('pay_time:不能为空'); } - $robot_res = $this->qyrobot->deposit_notify_v2($o_id, 1, $pay_time); + $robot_res = $this->qyrobot->deposit_notify_v3($o_id, 1, $pay_time); } else { - $robot_res = $this->qyrobot->deposit_notify_v2($o_id); + $robot_res = $this->qyrobot->deposit_notify_v3($o_id); } var_dump($robot_res); } diff --git a/api/controllers/wxapp/liche/Wxnotify_v3.php b/api/controllers/wxapp/liche/Wxnotify_v3.php index d269661a..5bd11134 100644 --- a/api/controllers/wxapp/liche/Wxnotify_v3.php +++ b/api/controllers/wxapp/liche/Wxnotify_v3.php @@ -128,7 +128,7 @@ class Wxnotify_v3 extends CI_Controller{ ]; debug_log("[info] ". __FUNCTION__ . ": ".json_encode($log,JSON_UNESCAPED_UNICODE), $this->log_file,$this->log_dir); if($result_data['data']['amount']['payer_total']>=10000 && $is_ts){ - $robot_res = $this->qyrobot->deposit_notify_v2($order['o_id']); + $robot_res = $this->qyrobot->deposit_notify_v3($order['o_id']); debug_log("[info] ". __FUNCTION__ . ":推送企业微信群 ".json_encode($robot_res,JSON_UNESCAPED_UNICODE), $this->log_file,$this->log_dir); } debug_log("[success] ". __FUNCTION__ . ":操作成功", $this->log_file,$this->log_dir); diff --git a/common/libraries/receiver/Orders_v2_entity.php b/common/libraries/receiver/Orders_v2_entity.php index c340c72b..b4e4196f 100644 --- a/common/libraries/receiver/Orders_v2_entity.php +++ b/common/libraries/receiver/Orders_v2_entity.php @@ -478,7 +478,7 @@ class Orders_v2_entity{ //生成pdf $this->create_pdf($row['id']); $this->ci->load->library('qyrobot'); - $this->ci->qyrobot->deposit_notify_v2($row['id']); + $this->ci->qyrobot->deposit_notify_v3($row['id']); }else{ $this->add_book_order($row['id'],$userinfo['id']); }