edit-liche-robot

This commit is contained in:
lccsw
2021-10-13 17:01:02 +08:00
parent 44c3a90422
commit 145f71a362
3 changed files with 11 additions and 2 deletions
+9
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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']]);