Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
86cebbca
Commit
86cebbca
authored
Feb 20, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3ea11cc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
ajax_social_user_register1.php
src/user/if/ajax_social_user_register1.php
+10
-3
ajax_social_user_register2.php
src/user/if/ajax_social_user_register2.php
+0
-1
No files found.
src/user/if/ajax_social_user_register1.php
View file @
86cebbca
...
...
@@ -7,6 +7,8 @@ ErrorLogger::doOutput("Compass...ajax_social_user_register1.php....Start.", 0);
//获取参数
$name
=
ParamUtil
::
getRequestString
(
"name"
);
//用户填写的用户名称
$mobile
=
ParamUtil
::
getRequestNumber
(
"mobile"
);
$legalPerson
=
ParamUtil
::
getRequestString
(
"legalPerson"
);
$organizationContact
=
ParamUtil
::
getRequestNumber
(
"organizationContact"
);
$openId
=
ParamUtil
::
getRequestString
(
"openId"
);
$unionId
=
ParamUtil
::
getRequestString
(
"unionId"
);
...
...
@@ -37,13 +39,18 @@ if(!empty($userList)) {
$userMst
=
new
UserMst
();
$userMst
->
school_no
=
$schoolNo
;
$userMst
->
class_no
=
$classNo
;
$userMst
->
original_source
=
$role
;
//此处跟role一样
if
(
empty
(
$legalPerson
))
{
$userMst
->
role
=
4
;
//社会用户[非机构]
}
else
{
$userMst
->
role
=
5
;
//社会用户[机构]
}
$userMst
->
openid
=
$openId
;
$userMst
->
unionid
=
$unionId
;
$userMst
->
name
=
$name
;
$userMst
->
mobile
=
$mobile
;
$userMst
->
role
=
5
;
//社会用户
$userMst
->
legal_person
=
$legalPerson
;
$userMst
->
organization_contact
=
$organizationContact
;
$userMst
->
save
();
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register1.php....End."
,
0
);
...
...
src/user/if/ajax_social_user_register2.php
View file @
86cebbca
...
...
@@ -5,7 +5,6 @@ require_once ("../user_include.inc");
ErrorLogger
::
doOutput
(
"Compass...ajax_social_user_register2.php....Start."
,
0
);
//获取参数
$name
=
ParamUtil
::
getRequestString
(
"name"
);
//用户微信昵称
$openId
=
ParamUtil
::
getRequestString
(
"openId"
);
$unionId
=
ParamUtil
::
getRequestString
(
"unionId"
);
$role
=
ParamUtil
::
getRequestNumber
(
"role"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment