In ThinkPHP3.1.2 integrated UCenter (3), the synchronous registration function is implemented. With an account, we can perform synchronous logon. Open UcService. class. PHP file, add a UC login and a logout method, code to the UCenter interface development manual user interface to find the user login sample code, copy it, And then slightly change, so that it has a return value for the next operation. The Code is as follows:
ThinkPHP3.1.2 comprehensive UCenter explanation (3)This chapter enables synchronous registration. With an account, we can perform synchronous logon.
Open UcService. class. PHP file, add a UC login and a logout method, code to the UCenter interface development manual user interface to find the user login sample code, copy it, And then slightly change, so that it has a return value for the next operation. The Code is as follows:
Public function uc