协议是否上传
This commit is contained in:
@@ -97,4 +97,16 @@ class Index extends Controller
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function get_is_upload() {
|
||||
$agreement_model = new AgreementModel;
|
||||
|
||||
$data = $agreement_model->getOne(['user_id' => $this->userinfo['UserId']]);
|
||||
|
||||
if (empty($data)) {
|
||||
echo json_encode(['code'=>-1]);
|
||||
} else {
|
||||
echo json_encode(['code'=>1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user