dever 3 years ago
parent
commit
7ca61e96f4
2 changed files with 3 additions and 1 deletions
  1. 1 0
      service/option/database/agreement.php
  2. 2 1
      service/option/src/My.php

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

@@ -406,6 +406,7 @@ return array
             'option' => array
             (
                 'aid' => 'yes',
+                'audit' => 'yes',
                 'state' => 1,
             ),
             'type' => 'all',

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

@@ -32,7 +32,7 @@ class My extends Core
             $this->data['jiaofu_state'] = 1;
         }
 
-        $agreement = Dever::db('option/agreement')->find(array('aid' => $this->uid));
+        $agreement = Dever::db('option/agreement')->find(array('aid' => $this->uid, 'audit' => 3));
         $this->data['agreement_state'] = 2;
         if ($agreement) {
             $this->data['agreement_state'] = 1;
@@ -244,6 +244,7 @@ class My extends Core
     public function getAgreement()
     {
         $where['aid'] = $this->uid;
+        $where['audit'] = 3;
         $this->data['list'] = Dever::db('option/agreement')->getAll($where);
 
         if ($this->data['list']) {