|
@@ -15,6 +15,7 @@ use app\enterprise\api\TalentApi;
|
|
use app\enterprise\model\Talent;
|
|
use app\enterprise\model\Talent;
|
|
use app\common\api\DictApi;
|
|
use app\common\api\DictApi;
|
|
use think\facade\Db;
|
|
use think\facade\Db;
|
|
|
|
+use app\admin\model\User;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 需要权限的公共方法放这
|
|
* 需要权限的公共方法放这
|
|
@@ -376,7 +377,36 @@ class Data extends BaseController {
|
|
];
|
|
];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return json(["rows" => $new_list]);
|
|
|
|
|
|
+
|
|
|
|
+ $json = [
|
|
|
|
+ 'code' => 200,
|
|
|
|
+ 'msg' => '查询成功',
|
|
|
|
+ 'data' => $new_list
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ $ret = base64_encode($this->curlPost("http://sm4.jinjianghc.com/sm4_cbc.php",['data' => json_encode($json),'key' => '3eh2rxdtkULT2zpkDdRiRGH8PL5J0LsZ','iv' => 'jKihG4wF622ocb8z']));
|
|
|
|
+ return $ret;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function getSysUser(\think\Request $request){
|
|
|
|
+ $pageSize = $request->param('pageSize',20);
|
|
|
|
+ $page = $request->param('page',1);
|
|
|
|
+ $where[] = ['type','=',1];
|
|
|
|
+ $where[] = ['u.id','>',1];
|
|
|
|
+ $list = User::alias("u")
|
|
|
|
+ ->field("u.id,u.account,u.password,u.salt,u.name,u.phone,u.email,u.companyId,c.name as companyName,r.name as roleName,u.sex,u.status,u.freezeTime,u.createTime")
|
|
|
|
+ ->leftJoin("sys_company c", "c.id=u.companyId")
|
|
|
|
+ ->leftJoin("sys_role r", "r.id=u.roleId")
|
|
|
|
+ ->where($where)
|
|
|
|
+ ->limit(($page-1)*$pageSize, $page*$pageSize)->select()->toArray();
|
|
|
|
+ //$list = Enterprise::where($where)->limit(($page-1)*$pageSize, $page*$pageSize)->order("createTime", 'desc')->field('id,industryFieldNew,enterpriseTag,organizationTag,institutionTag,enterpriseType,name,idCard,street,address,legal,ephone,agentName,agentPhone,username,password,bankCard,bankNetwork,bank,agentEmail,imgurl,bankImg,domainImg,typeImg,beian,checkState,checkMsg,checkUser,active,activeMsg,createTime,updateUser,updateTime,modify_fields,modify_files')->select()->toArray();
|
|
|
|
+ $json = [
|
|
|
|
+ 'code' => 200,
|
|
|
|
+ 'msg' => '查询成功',
|
|
|
|
+ 'data' => $list
|
|
|
|
+ ];
|
|
|
|
+ $ret = base64_encode($this->curlPost("http://sm4.jinjianghc.com/sm4_cbc.php",['data' => json_encode($json),'key' => '3eh2rxdtkULT2zpkDdRiRGH8PL5J0LsZ','iv' => 'jKihG4wF622ocb8z']));
|
|
|
|
+ return $ret;
|
|
}
|
|
}
|
|
|
|
|
|
public function test(){
|
|
public function test(){
|