phpwind 9的WINDID功能好比Discuz!的UC,但是相關(guān)的文檔和資料卻比較少,這里是官方的WINDID的注冊新用戶示例文檔。
User/register
- 原型
register($username, $email, $password, $question = , $answer = , $regip = )
- 返回值
int型,注冊成功,返回大于1的用戶UID, 小于1表示注冊失敗,返回錯誤代碼
- 參數(shù)
| 參數(shù) | 注釋 | 默認(rèn)值 | 備注 |
|---|---|---|---|
| $username | 用戶名 | ||
| 電子郵箱 | |||
| $password | 用戶密碼 | 需要明文密碼 | |
| $question | 安全問題 | 空 | |
| $answer | 安全問題答案 | 空 | |
| $regip | 注冊IP | 空 |
- 示例
$api = WindidApi::api('user');
$api->register('123123', 'abc@phpwind.net', '12345678')
- http方式
| 接收類型 | post |
| 接收name | username, email, password, question , answer, regip |
