|
@@ -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) {
|