|
@@ -32,9 +32,9 @@ class userlogic extends baselogic
|
|
|
'getfieldbyopenid' => [
|
|
|
['name' => 'openid', 'title' => 'openid', 'require' => true, 'type' => 'string'],
|
|
|
],
|
|
|
- 'getfieldbyid'=>[
|
|
|
+ 'getfieldbyid' => [
|
|
|
['name' => 'userid', 'title' => 'userid', 'require' => true, 'type' => 'string'],
|
|
|
- ]
|
|
|
+ ],
|
|
|
];
|
|
|
return $list;
|
|
|
}
|
|
@@ -170,7 +170,7 @@ class userlogic extends baselogic
|
|
|
}
|
|
|
$openid = $arr['openid'];
|
|
|
$m_u = new usermodel();
|
|
|
- $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company"];
|
|
|
+ $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company", "company_id", "origin", "nation", "address"];
|
|
|
$info = $m_u->getfieldbyopenid($openid, $field);
|
|
|
if (empty($info)) {
|
|
|
return backarr(0, '无用户');
|
|
@@ -190,7 +190,7 @@ class userlogic extends baselogic
|
|
|
}
|
|
|
$userid = $arr['userid'];
|
|
|
$m_u = new usermodel();
|
|
|
- $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company"];
|
|
|
+ $field = ["id", "user_name", "telno", "gender", "age", "email", "is_active", "is_company", "company_id", "origin", "nation", "address"];
|
|
|
$info = $m_u->getfieldbyid($userid, $field);
|
|
|
if (empty($info)) {
|
|
|
return backarr(0, '无用户');
|