|
@@ -6,6 +6,29 @@ use Dever;
|
|
|
|
|
|
class Account
|
|
|
{
|
|
|
+ public function getIdcard($id)
|
|
|
+ {
|
|
|
+ if ($id < 0) {
|
|
|
+ return '无';
|
|
|
+ }
|
|
|
+ $account = Dever::db('option/account')->find($id);
|
|
|
+ if ($account && $account['is_idcard'] == 1) {
|
|
|
+ $html = '已上传';
|
|
|
+
|
|
|
+ $table = array();
|
|
|
+ if ($account['idcard_front']) {
|
|
|
+ $table['正面'] = '<img src="'.$account['idcard_front'].'" width="150">';
|
|
|
+ }
|
|
|
+ if ($account['idcard_back']) {
|
|
|
+ $table['背面'] = '<img src="'.$account['idcard_back'].'" width="150">';
|
|
|
+ }
|
|
|
+ $html .= Dever::table($table);
|
|
|
+ return $html;
|
|
|
+ } else {
|
|
|
+ return '未上传';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public function getInfo($id)
|
|
|
{
|
|
|
if ($id < 0) {
|