|
@@ -48,6 +48,8 @@ class resumelogic extends baselogic
|
|
|
['name' => 'status', 'title' => 'status', 'type' => 'numeric', 'regex' => '/[0|1|2]{1}/'],
|
|
|
['name' => 'page', 'title' => 'page', 'type' => 'numeric'],
|
|
|
['name' => 'size', 'title' => 'size', 'type' => 'numeric'],
|
|
|
+ ['name' => 'iscompany', 'title' => 'iscompany', 'type' => 'numeric', 'regex' => '/[0|1]{1}/'],
|
|
|
+ ['name' => 'inventid', 'title' => 'inventid', 'type' => 'numeric'],
|
|
|
],
|
|
|
'getinfobyid' => [
|
|
|
['name' => 'id', 'title' => 'id', 'require' => true, 'type' => 'numeric'],
|
|
@@ -348,16 +350,25 @@ class resumelogic extends baselogic
|
|
|
return $result;
|
|
|
}
|
|
|
$openid = $arr['openid'];
|
|
|
+ $iscompany = isset($arr['iscompany']) ? $arr['iscompany'] : 0;
|
|
|
$m_u = new usermodel();
|
|
|
$uinfo = $m_u->getinfobyopenid($openid);
|
|
|
if (empty($uinfo)) {
|
|
|
return backarr(0, "用户信息不存在");
|
|
|
}
|
|
|
$where = [];
|
|
|
+ if (isset($arr['inventid'])) {
|
|
|
+ $where['invent_id'] = $arr['inventid'];
|
|
|
+ }
|
|
|
if (isset($arr['status'])) {
|
|
|
$where['status'] = $arr['status'];
|
|
|
}
|
|
|
- if (1 != $uinfo['is_company']) {
|
|
|
+ /*if (1 != $uinfo['is_company']) {
|
|
|
+ $where['send_user_id'] = $uinfo['id'];
|
|
|
+ } else {
|
|
|
+ $where['company_id'] = $uinfo['company_id'];
|
|
|
+ }*/
|
|
|
+ if (1 != $iscompany) {
|
|
|
$where['send_user_id'] = $uinfo['id'];
|
|
|
} else {
|
|
|
$where['company_id'] = $uinfo['company_id'];
|