提交 90e21206 authored 作者: chengye's avatar chengye

test

上级 65750cdb
...@@ -26,9 +26,11 @@ class flow_emfkClassModel extends flowModel ...@@ -26,9 +26,11 @@ class flow_emfkClassModel extends flowModel
* @param $sm * @param $sm
*/ */
protected function flowcheckafter($zt, $sm){ protected function flowcheckafter($zt, $sm){
m('log')->addlog('电费付款','未通过'); if($zt == 2){
$this->updatestatus(5); m('log')->addlog('电费付款','未通过');
if($zt == 2) $this->sendMess(0,9); $this->updatestatus(5);
$this->sendMess(0,9);
}
} }
/** /**
...@@ -43,8 +45,9 @@ class flow_emfkClassModel extends flowModel ...@@ -43,8 +45,9 @@ class flow_emfkClassModel extends flowModel
$url = $url.$key.'&action='.$messType; //接口地址 $url = $url.$key.'&action='.$messType; //接口地址
$url .= '&numb='.$this->rs['docnum']; $url .= '&numb='.$this->rs['docnum'];
$url .= '&status='.$status; $url .= '&status='.$status;
m('log')->addlog('电费付款','接口返回信息: url '.$url);
$url .= '&mes='.''; $url .= '&mes='.'';
m('log')->addlog('电费付款','接口返回信息: url '.$url);
$res = curlGet($url); $res = curlGet($url);
m('log')->addlog('电费付款','接口返回信息:' .$res); m('log')->addlog('电费付款','接口返回信息:' .$res);
......
<?php <?php
class flow_hklistClassModel extends flowModel class flow_hklistClassModel extends flowModel
{ {
//审核完成后调用
//审核完成后调用 protected function flowcheckafter($zt, $sm)
protected function flowcheckafter($zt, $sm){ {
$flowid=$this->getflow(); $flowid = $this->getflow();
if($flowid['nowcourseid']== '804'){ if ($flowid['nowcourseid'] == '804') {
$data=$this->db->getrows('oa_hks',"mid='".$this->rs['id']."'"); $data = $this->db->getrows('oa_hks', "mid='" . $this->rs['id'] . "'");
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
$statusarr = array( $statusarr = array(
'status' =>2, 'status' => 2,
); );
$id=$value['hks_id']; $id = $value['hks_id'];
m('hkrequest')->update($statusarr,"`id`='$id'"); m('hkrequest')->update($statusarr, "`id`='$id'");
} }
} }
if($flowid['nowcourseid']== '807'){ if ($flowid['nowcourseid'] == '807') {
$data=$this->db->getrows('oa_hks',"mid='".$this->rs['id']."'"); $data = $this->db->getrows('oa_hks', "mid='" . $this->rs['id'] . "'");
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
if($value['hkstatus']=="已回款"){ if ($value['hkstatus'] == "已回款") {
$statusarr = array( $statusarr = array(
'status' =>3, 'status' => 3,
); );
$id=$value['hks_id']; $id = $value['hks_id'];
m('hkrequest')->update($statusarr,"`id`='$id'"); m('hkrequest')->update($statusarr, "`id`='$id'");
} }
} }
} }
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论