Quellcode durchsuchen

短信通知功能bug

NoNZero vor 8 Jahren
Ursprung
Commit
b82e0bef63

+ 2 - 1
protected/controller/SProjectController.php

@@ -1,5 +1,4 @@
 <?php
 <?php
-
 Doo::loadClass('auth');
 Doo::loadClass('auth');
 Doo::loadClass('attfile');
 Doo::loadClass('attfile');
 Doo::loadClass('profile');
 Doo::loadClass('profile');
@@ -329,6 +328,7 @@ class SProjectController extends DooController
             }
             }
         }
         }
         if (isset($_POST['optype']) && ($_POST['optype'] == 'del') && isset($_POST['imnid'])) {
         if (isset($_POST['optype']) && ($_POST['optype'] == 'del') && isset($_POST['imnid'])) {
+            ini_set('display_errors', 1);
             $imnidArray = $this->itemmeasurenum->getRowData($_POST['imnid']);
             $imnidArray = $this->itemmeasurenum->getRowData($_POST['imnid']);
             if ($imnidArray['iaid'] > 0) {
             if ($imnidArray['iaid'] > 0) {
                 $this->itemmeasurenum->updateDeltag($_POST['imnid'], $this->auth->getUid());
                 $this->itemmeasurenum->updateDeltag($_POST['imnid'], $this->auth->getUid());
@@ -425,6 +425,7 @@ class SProjectController extends DooController
             $this->data['itemMeasureArray'][$k]['fileext'] = $fileArray['fileext'];
             $this->data['itemMeasureArray'][$k]['fileext'] = $fileArray['fileext'];
             $this->data['itemMeasureArray'][$k]['tips'] = $v['tips'];
             $this->data['itemMeasureArray'][$k]['tips'] = $v['tips'];
         }
         }
+
         $this->data['pid'] = $this->params['pid'];
         $this->data['pid'] = $this->params['pid'];
         $this->data['pmid'] = $this->params['pmid'];
         $this->data['pmid'] = $this->params['pmid'];
         $this->data['mpid'] = $this->params['mpid'];
         $this->data['mpid'] = $this->params['mpid'];

+ 2 - 4
protected/view/s-project-section-files-recover.html

@@ -34,8 +34,7 @@
                         </a>
                         </a>
                         <ul class="dropdown-menu">
                         <ul class="dropdown-menu">
                             <!-- loop allconArray -->
                             <!-- loop allconArray -->
-                            <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray'
-                                value.stname}}</a></li>
+                            <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray' value.stname}}</a></li>
                             <!-- endloop -->
                             <!-- endloop -->
                         </ul>
                         </ul>
                     </li>
                     </li>
@@ -47,8 +46,7 @@
                         <ul class="dropdown-menu">
                         <ul class="dropdown-menu">
                             <!-- loop allactmeasureArray -->
                             <!-- loop allactmeasureArray -->
                             <li>
                             <li>
-                                <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray'
-                                    value.pmname}}</a></li>
+                                <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray' value.pmname}}</a></li>
                             <!-- endloop -->
                             <!-- endloop -->
                             <!--				    <li class="divider"></li>
                             <!--				    <li class="divider"></li>
                                                 <li><a href="#">共18标段,查看更多</a></li>-->
                                                 <li><a href="#">共18标段,查看更多</a></li>-->

+ 5 - 7
protected/view/s-project-section-files.html

@@ -34,8 +34,7 @@
                         </a>
                         </a>
                         <ul class="dropdown-menu">
                         <ul class="dropdown-menu">
                             <!-- loop allconArray -->
                             <!-- loop allconArray -->
-                            <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray'
-                                value.stname}}</a></li>
+                            <li><a href="{{rootUrl}}project/{{currproArray.pid}}/section">{{allconArray' value.stname}}</a></li>
                             <!-- endloop -->
                             <!-- endloop -->
                         </ul>
                         </ul>
                     </li>
                     </li>
@@ -47,8 +46,7 @@
                         <ul class="dropdown-menu">
                         <ul class="dropdown-menu">
                             <!-- loop allactmeasureArray -->
                             <!-- loop allactmeasureArray -->
                             <li>
                             <li>
-                                <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray'
-                                    value.pmname}}</a></li>
+                                <a href="{{rootUrl}}project/{{currproArray.pid}}/section/{{allactmeasureArray' value.pmid}}/detail">{{allactmeasureArray' value.pmname}}</a></li>
                             <!-- endloop -->
                             <!-- endloop -->
                             <!--				    <li class="divider"></li>
                             <!--				    <li class="divider"></li>
                                                 <li><a href="#">共18标段,查看更多</a></li>-->
                                                 <li><a href="#">共18标段,查看更多</a></li>-->
@@ -113,8 +111,7 @@
                                     tips="{{itemMeasureArray' value.tips}}"
                                     tips="{{itemMeasureArray' value.tips}}"
                                     href="#"
                                     href="#"
                                     numpname="第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期"
                                     numpname="第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期"
-                                    id="fname_{{itemMeasureArray' value.imnid}}">{{itemMeasureArray'
-                                value.filename}}</a></td>
+                                    id="fname_{{itemMeasureArray' value.imnid}}">{{itemMeasureArray' value.filename}}</a></td>
                             <td>第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期</td>
                             <td>第{{ToChinaseNum(itemMeasureArray' value.numpname)}}期</td>
                             <td>{{itemMeasureArray' value.pmname}}</td>
                             <td>{{itemMeasureArray' value.pmname}}</td>
                             <td width="">{{itemMeasureArray' value.realname}}</td>
                             <td width="">{{itemMeasureArray' value.realname}}</td>
@@ -308,6 +305,7 @@
             $(".filesDetail").show();
             $(".filesDetail").show();
             $("#fid").val(imnid);
             $("#fid").val(imnid);
             $("#iaid").val(iaid);
             $("#iaid").val(iaid);
+            $("#upimnid").val(imnid);
         });
         });
 
 
         $("a[id^='dropdown_']").click(function () {
         $("a[id^='dropdown_']").click(function () {
@@ -316,7 +314,7 @@
         });
         });
 
 
         $("#del").click(function () {
         $("#del").click(function () {
-            var imnid = $(this).attr('imnid');
+            var imnid = $("#upimnid").val();
             $.ajax({
             $.ajax({
                 type: "POST",
                 type: "POST",
                 dataType: "json",
                 dataType: "json",