diff --git a/api/controllers/plan/Xzcall.php b/api/controllers/plan/Xzcall.php index 63525446..5024b4fd 100644 --- a/api/controllers/plan/Xzcall.php +++ b/api/controllers/plan/Xzcall.php @@ -162,4 +162,13 @@ class Xzcall extends HD_Controller $date = date("Y-m-d H:i:s.x", $usec); return $mescdate = str_replace('x', $sec, $date); } + + public function robot(){ + $o_id = $this->input->get('id'); + if($o_id){ + $this->load->library('qyrobot'); + $robot_res = $this->qyrobot->deposit_notify($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 dc8ca730..a4df6387 100644 --- a/api/controllers/wxapp/liche/Wxnotify_v3.php +++ b/api/controllers/wxapp/liche/Wxnotify_v3.php @@ -110,7 +110,7 @@ class Wxnotify_v3 extends CI_Controller{ $this->load->service('apporder/payment_service', array('app_id' => $this->app_id)); $result = $this->payment_service->after_pay_liche($sid,$result['data']['amount']['payer_total']/100); if($result['code']){ - if($order['type']==1){ //支付定金推送企业微信群 + if($order['type']==1 && $result['data']['amount']['payer_total']>=10000){ //支付定金推送企业微信群 $this->load->library('qyrobot'); $robot_res = $this->qyrobot->deposit_notify($order['o_id']); debug_log("[info] ". __FUNCTION__ . ":推送企业微信群 ".json_encode($robot_res,JSON_UNESCAPED_UNICODE), $this->log_file,$this->log_dir); diff --git a/common/libraries/Qyrobot.php b/common/libraries/Qyrobot.php index 23be4970..86d27555 100644 --- a/common/libraries/Qyrobot.php +++ b/common/libraries/Qyrobot.php @@ -34,7 +34,7 @@ class Qyrobot{ $this->ci->load->model('app/licheb/app_licheb_users_model'); $order_row = $this->ci->receiver_orders_model->get(['id'=>$oid]); - if(!$order_row || $order_row['pay_price']<=100){ + if(!$order_row){ return false; } $biz_row = $this->ci->biz_model->get(['id'=>$order_row['biz_id']]);