提交 34c039ce authored 作者: chengye's avatar chengye

test

上级 78419b3a
......@@ -16,6 +16,8 @@ class flow_emfkClassModel extends flowModel
protected function flowcheckfinsh($zt)
{
m('log')->addlog('电费付款','审核通过');
$this->sendMess(1,3);
}
......@@ -25,16 +27,18 @@ class flow_emfkClassModel extends flowModel
* @param $sm
*/
protected function flowcheckafter($zt, $sm){
if($zt == 2) $this->sendMess(0,9);
m('log')->addlog('电费付款','未通过');
$this->updatestatus(5);
if($zt == 2) $this->sendMess(0,9);
}
/**
* @param int $messType 动作
* @param int $status 状态
*/
private function sendMess($messType = 0,$status = 3){
m('log')->addlog('电费付款','接口动作:'.$messType.'状态:'.$status);
$url = getconfig('base_url'). 'v2/payment?key=';
$key = substr(md5(getconfig('openkey').date('Y-m-d')),0,12);
$url = $url.$key.'&git ='.$messType; //接口地址
......@@ -42,5 +46,7 @@ class flow_emfkClassModel extends flowModel
$url .= '&status='.$status;
$url .= '&mes='.'';
$res = curlGet($url);
m('log')->addlog('电费付款','接口返回信息:' .$res);
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论