add-xz-log
This commit is contained in:
Vendored
+4
-1
@@ -129,11 +129,14 @@ class Xcall{
|
||||
$result=$this->postUrlForCalling($url, $curlparams);
|
||||
$data = json_decode($result,true);
|
||||
if(!$data['result']){
|
||||
debug_log('function:'.__FUNCTION__,$this->log_file);
|
||||
debug_log('post_data:'.$curlparams,$this->log_file);
|
||||
debug_log('绑定成功result:'.$result,$this->log_file);
|
||||
return ['code'=>1,'msg'=>'绑定成功','data'=> $data];
|
||||
}{
|
||||
debug_log('function:'.__FUNCTION__,$this->log_file);
|
||||
debug_log('post_data:'.$curlparams,$this->log_file);
|
||||
debug_log('result:'.$result,$this->log_file);
|
||||
debug_log('绑定失败result:'.$result,$this->log_file);
|
||||
return ['code'=>0,'msg'=>$data['error']];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user