dever 3 years ago
parent
commit
99d8582de1
1 changed files with 9 additions and 2 deletions
  1. 9 2
      service/option/src/My.php

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

@@ -20,10 +20,17 @@ class My extends Core
 
         $jiaofu = Dever::db('option/bill_jiaofu')->find(array('status' => 2, 'aid' => $this->uid));
 
-        $this->data['state'] = 1;
+        $this->data['jiaofu_state'] = 2;
         if ($jiaofu) {
-            $this->data['state'] = 2;
+            $this->data['jiaofu_state'] = 1;
         }
+
+        $agreement = Dever::db('option/agreement')->find(array('aid' => $this->uid));
+        $this->data['agreement_state'] = 2;
+        if ($agreement) {
+            $this->data['agreement_state'] = 1;
+        }
+
         if ($this->data['cash']) {
             foreach ($this->data['cash'] as $k => $v) {
                 if ($v['type'] == 1) {