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