dever %!s(int64=3) %!d(string=hai) anos
pai
achega
cdc68315cf
Modificáronse 2 ficheiros con 9 adicións e 1 borrados
  1. 8 0
      service/option/database/agreement.php
  2. 1 1
      service/option/src/My.php

+ 8 - 0
service/option/database/agreement.php

@@ -1,11 +1,19 @@
 <?php
 
+/*
 $status = array
 (
     1 => '待签署',
     2 => '有效',
     3 => '作废',
 );
+*/
+$status = array
+(
+    1 => '有效',
+    2 => '有效',
+    3 => '作废',
+);
 $aid = Dever::input('search_option_aid');
 $button = array();
 if ($aid) {

+ 1 - 1
service/option/src/My.php

@@ -200,7 +200,7 @@ class My extends Core
 
         # 签署合同
         $this->user['sign'] = $update['sign'];
-        Dever::load('option/lib/agreement')->up($this->user, $ids, $total);
+        $agreement_id = Dever::load('option/lib/agreement')->up($this->user, $ids, $total);
 
         return $this->user;
     }