edit-plan-robot

This commit is contained in:
lccsw
2021-10-14 17:38:55 +08:00
parent d70d0afbaf
commit 19138006d4
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -162,6 +162,15 @@ class Xzcall extends HD_Controller
$date = date("Y-m-d H:i:s.x", $usec);
return $mescdate = str_replace('x', $sec, $date);
}
//执行企业微信机器人
public function dorobot(){
$o_id = $this->input->get('id');
if($id){
$this->load->library('qyrobot');
$robot_res = $this->qyrobot->deposit_notify($o_id);
var_dump($robot_res);
}
}
//更新订单金融服务费
public function up_srv_money(){
$o_id = $this->input->get('id');
+2 -2
View File
@@ -80,7 +80,7 @@ class Wxnotify_v3 extends CI_Controller{
$client = new GuzzleHttp\Client();
try {
$resp = $client->request('POST', $this->desc_url, ['form_params' => $this->notify_data]);
$result = json_decode($resp->getBody(),true);
$result_data = $result = json_decode($resp->getBody(),true);
if(!$result['code']){ //解密失败
debug_log("[error] ". __FUNCTION__ . "# 解密失败:" . $resp->getBody(), $this->log_file,$this->log_dir);
}else{
@@ -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 && $result['data']['amount']['payer_total']>=10000){ //支付定金推送企业微信群
if($order['type']==1 && $result_data['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);