提交 daa73a87 authored 作者: fengzy's avatar fengzy

OA数据同步生产环境测试

上级 2e2e15bf
......@@ -120,7 +120,7 @@ class openemClassAction extends openapiAction
'qmimg' =>NULL,
'iszb' =>0
);
// self::sendMess(1,3);
self::sendMess(1,3);
m('flow_log')->insert($addarr);
$docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......@@ -247,7 +247,7 @@ class openemClassAction extends openapiAction
'iszb' =>0
);
m('flow_log')->insert($addarr);
self::sendMess(1,3);
$docnum= $datalist['docnum'];
$withhold_cost = m('c_withhold_emfk')->getall("docnum='$docnum' and status =1", 'id,cost_id,amount');
......@@ -322,21 +322,21 @@ class openemClassAction extends openapiAction
}
// public static function sendMess($messType = 0,$status = 3){
// m('log')->addlog('电费付款','接口动作:'.$messType.'状态:'.$status,1);
public static function sendMess($messType = 0,$status = 3){
m('log')->addlog('电费付款','接口动作:'.$messType.'状态:'.$status,1);
// $url = getconfig('base_url'). 'v2/payment?key=';
// $key = substr(md5(getconfig('openkey').date('Y-m-d')),0,12);
// $url = $url.$key.'&action='.$messType; //接口地址
// $url .= '&numb='.$this->rs['docnum'];
// $url .= '&status='.$status;
// $url .= '&mes='.'';
// m('log')->addlog('电费付款','接口发送信息: url '.$url);
$url = getconfig('base_url'). 'v2/payment?key=';
$key = substr(md5(getconfig('openkey').date('Y-m-d')),0,12);
$url = $url.$key.'&action='.$messType; //接口地址
$url .= '&numb='.$this->rs['docnum'];
$url .= '&status='.$status;
$url .= '&mes='.'';
m('log')->addlog('电费付款','接口发送信息: url '.$url);
// $res = curlGet($url);
// m('log')->addlog('电费付款','接口返回信息:' .$res);
$res = curlGet($url);
m('log')->addlog('电费付款','接口返回信息:' .$res);
// }
}
public static function dept($data)
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论