Skip to content

Commit

Permalink
增加os的参数
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal committed May 13, 2015
1 parent db92e4c commit 29c9003
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions upload/src/applications/native/controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public function beforeAction($handlerAdapter) {
* @return void
* @example
<pre>
/index.php?m=native&c=user&a=checkLoginStatus
/index.php?m=native&c=user&a=checkLoginStatus&os=Android
<br>
os可以是android或者ios <br>
post: securityKey <br>
response: {"referer":"","refresh":false,"state":"success","data":{"thirdPlatformAppid":{"taobao":{"order":"0","appId":"a123456"}},"userinfo":{"username":"qiwen","avatar":"http:\/\/img1.phpwind.net\/attachout\/avatar\/002\/37\/41\/2374101_small.jpg","gender":0}},"html":"","message":["\u6b22\u8fce\u56de\u6765..."],"__error":""}
</pre>
Expand Down Expand Up @@ -108,7 +109,8 @@ public function checkLaiwangAction() {
* @return string
* @example
<pre>
/index.php?m=native&c=user&a=doLogin <br>
/index.php?m=native&c=user&a=doLogin&os=android <br>
os可以是android或者ios <br>
post: username&password&csrf_token&code&_json=1 <br>
response:
{
Expand Down Expand Up @@ -179,7 +181,8 @@ public function doLoginAction(){
* @return void
* @example
<pre>
/index.php?m=native&c=user&a=doRegister <br>
/index.php?m=native&c=user&a=doRegister&os=android <br>
os可以是android或者ios <br>
post: username&password&repassword&email&code
response: {err:"",data:""}
</pre>
Expand Down Expand Up @@ -355,6 +358,7 @@ public function findPwdAction(){
* @return string sessionid
* @example
<pre>
os可以是android或者ios <br>
post: access_token&platformname(qq|weibo|weixin|taobao)&native_name(回调地址)
</pre>
*/
Expand Down Expand Up @@ -406,6 +410,7 @@ public function openAccountLoginAction(){
* @return void
* @example
<pre>
os可以是android或者ios <br>
post: access_token&platformname&native_name&username&email&sex
</pre>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PwLaiWangSerivce {
public static $wk_appSecret= '';

/**
* 需要从GET或者POST传入os,可以是Android或者iOS
* 需要从GET或者POST传入os,可以是android或者ios
*
*/
function __construct()
Expand Down

0 comments on commit 29c9003

Please sign in to comment.