|
@@ -797,8 +797,10 @@ class ClientController extends DooController
|
|
|
$this->measureauditact->setStatusTo($auditUserArray[0]['maid'], 3);
|
|
|
$this->numofperact->updateAuditStatus($_POST['tenderid'], $_POST['phaseno'], 'checked', $iniTimes);
|
|
|
// SMS Start
|
|
|
- if (isset($verifyUserArray) && ($verifyUserArray['mobile'])) {// // XXXX(标段名),陈特,已审批通过。请您继续审批。
|
|
|
- $this->__auditNotice($verifyUserArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $pmnameArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR3"]);
|
|
|
+ $TenderArray = $this->actmeasure->getRowByPmid($_POST['tenderid']);
|
|
|
+ $userProArray = $this->profile->getProWithUid($TenderArray['uid']);
|
|
|
+ if (isset($userProArray) && ($userProArray['mobile'])) {
|
|
|
+ $retval = $this->__auditNotice($userProArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $TenderArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR3"]);
|
|
|
}
|
|
|
// SMS End
|
|
|
echo json_encode(array('status' => TRUE, 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
@@ -807,6 +809,13 @@ class ClientController extends DooController
|
|
|
if (($countAudit == 2) && ($auditUserArray[0]['last'] == 1) && ($auditUserArray[1]['maid'] == $auditArray['maid'])) {// 如果审核人为两个,第一个是最后审核人角色,第二个为当前审核人,设置审核中状态 {就是当前用户POST UID}
|
|
|
$this->measureauditact->updateMastatus($auditUserArray[0]['maid']);
|
|
|
$this->numofperact->updateAuditStatus($_POST['tenderid'], $_POST['phaseno'], 'checking', $iniTimes);
|
|
|
+ // SMS Start
|
|
|
+ $verifyUserArray = $this->profile->getVerifiedMobile($auditUserArray[0]['auditoruid']);
|
|
|
+ $pmnameArray = $this->actmeasure->getRowByPmid($_POST['tenderid']);
|
|
|
+ if (isset($verifyUserArray) && ($verifyUserArray['mobile'])) {// XXXX(标段名),陈特,已审批通过。请您继续审批。
|
|
|
+ $this->__auditNotice($verifyUserArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $pmnameArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR2"]);
|
|
|
+ }
|
|
|
+ // SMS End
|
|
|
echo json_encode(array('status' => TRUE, 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
|
die();
|
|
|
}
|
|
@@ -974,13 +983,6 @@ class ClientController extends DooController
|
|
|
}
|
|
|
$this->measureauditact->setCheckno($auditArray['maid'], $auditcontent);
|
|
|
$this->numofperact->updateAuditStatus($this->params['tenderid'], $this->params['phaseno'], 'checkno', $iniTimes);
|
|
|
- // SMS Start
|
|
|
- $TenderArray = $this->actmeasure->getRowByPmid($this->params['tenderid']);
|
|
|
- $userProArray = $this->profile->getProWithUid($TenderArray['uid']);
|
|
|
- if (isset($userProArray) && ($userProArray['mobile'])) {// // XXXX(标段名),陈特,已审批通过。请您继续审批。
|
|
|
- $this->__auditNotice($userProArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $TenderArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR4"]);
|
|
|
- }
|
|
|
- // SMS End
|
|
|
$fp = $this->upfile('upfile');
|
|
|
if (isset($fp[0]['filepath'])) {
|
|
|
// 解压缩文件等待以后直接使用
|
|
@@ -1006,6 +1008,13 @@ class ClientController extends DooController
|
|
|
$this->attfile->setOldfileFlag($this->params['tenderid'], $this->params['phaseno'], $iniTimes);
|
|
|
// 插入此次提交的文件路径数据并设置为新状态
|
|
|
$this->attfile->insertFile($auditArray['pid'], $auditArray['stid'], $auditArray['mpid'], $this->params['tenderid'], $this->params['phaseno'], $this->params['userid'], $fp[0]['filepath'], 0, $_POST['MD5_JL'], $iniTimes);
|
|
|
+ // SMS Start
|
|
|
+ $TenderArray = $this->actmeasure->getRowByPmid($this->params['tenderid']);
|
|
|
+ $userProArray = $this->profile->getProWithUid($TenderArray['uid']);
|
|
|
+ if (isset($userProArray) && ($userProArray['mobile'])) {
|
|
|
+ $retval = $this->__auditNotice($userProArray['mobile'], Doo::conf()->SMS_TIPS_PRE . '您好,' . $TenderArray["pmname"] . Doo::conf()->SMS_TIPS["AUDIT_NOTICE_AUDITOR4"]);
|
|
|
+ }
|
|
|
+ // SMS End
|
|
|
echo json_encode(array('status' => TRUE, 'msg' => ''), JSON_UNESCAPED_UNICODE);
|
|
|
die();
|
|
|
} else {
|