rabin 3 rokov pred
rodič
commit
1711f628e3
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      service/option/lib/Account.php

+ 2 - 2
service/option/lib/Account.php

@@ -86,13 +86,13 @@ class Account
         }
     }
 
-    public function getAgreementStatus($id, $table = 'option/account')
+    public function getAgreementStatus($id, $table = 'option/agreement')
     {
         if ($id < 0) {
             return '无';
         }
         $audit = Dever::db($table)->config['audit'];
-        $agreement = Dever::db('option/agreement')->find(array('aid' => $id));
+        $agreement = Dever::db($table)->find(array('aid' => $id));
         if ($agreement) {
             $string = $audit[$agreement['audit']];
             if ($agreement['audit'] == 4) {