KesionEDU网校V10(2022)


获取公众号授权信息

<p>[TOC]</p> <h5>简要描述</h5> <p>-获取公众号授权信息接口</p> <h5>请求URL</h5> <ul> <li><code>http://域名/webapi/school/GetWeixinAuthInfo</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">apptoken</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>登录令牌</td> </tr> </tbody> </table> <h5>未授权时,返回示例</h5> <pre><code>{     "auth_url":"http://www.qxton.cn/plus/auth_url?schoolid=5",     "returnCode":3002,     "result":false,     "msg":"对不起,公众号还未授权!" }</code></pre> <h5>未授权时,返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">result</td> <td style="text-align: left;">bool</td> <td>true已授权 false未授权或是没有开通第三方公众号授权</td> </tr> <tr> <td style="text-align: left;">returnCode</td> <td style="text-align: left;">int</td> <td>3001 没有开通第三方公众号授权, 3002当前机构未授权公众号过来</td> </tr> <tr> <td style="text-align: left;">auth_url</td> <td style="text-align: left;">string</td> <td>当returnCode为3002时,跳转公众号授权的URL地址</td> </tr> </tbody> </table> <h5>已授权时,返回示例</h5> <pre><code>{     "openname":"厦门科汛软件有限公司",     "weixintype":"2",     "appid":"wx3d73fc4aef554bf3",     "auth_url":"http://www.qxton.cn/plus/auth_url?schoolid=5",     "url":"http://wx.qlogo.cn/mmopen/h62vMYNG1mL5gTicYS5bQWDUEQ0t801kkyW9PpicMdh1sulU3W8ITQa1fbjWRBC0fOXab7RlgKYCxD6mGPJ8H3TsxGS80m1ZZX/0",     "msg":"success",     "weixinname":"KESION 科汛",     "weixinopenid":"gh_d8440d09c8a5", "iswechatautologin":1,     "info":{         "authorizer_info":{             "nick_name":"KESION 科汛",             "head_img":"http://wx.qlogo.cn/mmopen/h62vMYNG1mL5gTicYS5bQWDUEQ0t801kkyW9PpicMdh1sulU3W8ITQa1fbjWRBC0fOXab7RlgKYCxD6mGPJ8H3TsxGS80m1ZZX/0",             "service_type_info":{                 "id":2             },             "verify_type_info":{                 "id":0             },             "user_name":"gh_d8440d09c8a5",             "alias":"xmkesion",             "qrcode_url":"http://mmbiz.qpic.cn/mmbiz_jpg/0QmKUOhLrEUlFKwj1jTONZYN48TJ6oTq7ztkJ3Abd26w3iaL00JZH27BaakEahqzX8oUTvNHiaBia7VUwzzUQs3mg/0",             "business_info":{                 "open_pay":1,                 "open_shake":0,                 "open_scan":0,                 "open_card":0,                 "open_store":0             },             "idc":1,             "principal_name":"厦门科汛软件有限公司",             "signature":"KESION 是一家拥有独立部署网校、教育SaaS、内容分销市场、课程商城和在线教育咨询等服务的在线教育服务企业。深耕线上教育技术16年以来,提供从工具、流量、资源、运营等多方位为教育企业机构提供一站式新教育服务。",             "account_status":1         },         "authorization_info":{             "authorizer_appid":"wx3d73fc4aef554bf3",             "authorizer_refresh_token":"refreshtoken@@@gIicDorcmmjJLg4lsNcC_td-Gx3mRJAMELLo0TIH8QQ",             "func_info":[                 {                     "funcscope_category":{                         "id":1                     },                     "confirm_info":{                         "need_confirm":1,                         "already_confirm":0,                         "can_confirm":1                     }                 },                 {                     "funcscope_category":{                         "id":2                     },                     "confirm_info":{                         "need_confirm":1,                         "already_confirm":0,                         "can_confirm":1                     }                 },                 {                     "funcscope_category":{                         "id":3                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":4                     }                 },                 {                     "funcscope_category":{                         "id":5                     }                 },                 {                     "funcscope_category":{                         "id":6                     }                 },                 {                     "funcscope_category":{                         "id":7                     }                 },                 {                     "funcscope_category":{                         "id":8                     },                     "confirm_info":{                         "need_confirm":1,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":9                     }                 },                 {                     "funcscope_category":{                         "id":10                     }                 },                 {                     "funcscope_category":{                         "id":11                     },                     "confirm_info":{                         "need_confirm":1,                         "already_confirm":0,                         "can_confirm":1                     }                 },                 {                     "funcscope_category":{                         "id":12                     }                 },                 {                     "funcscope_category":{                         "id":13                     }                 },                 {                     "funcscope_category":{                         "id":15                     }                 },                 {                     "funcscope_category":{                         "id":22                     }                 },                 {                     "funcscope_category":{                         "id":23                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":24                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":26                     }                 },                 {                     "funcscope_category":{                         "id":27                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":33                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":34                     }                 },                 {                     "funcscope_category":{                         "id":35                     }                 },                 {                     "funcscope_category":{                         "id":44                     },                     "confirm_info":{                         "need_confirm":0,                         "already_confirm":0,                         "can_confirm":0                     }                 },                 {                     "funcscope_category":{                         "id":46                     }                 },                 {                     "funcscope_category":{                         "id":47                     }                 },                 {                     "funcscope_category":{                         "id":54                     }                 },                 {                     "funcscope_category":{                         "id":66                     }                 },                 {                     "funcscope_category":{                         "id":89                     }                 }             ]         }     },     "result":true,     "ercodeimg":"http://mmbiz.qpic.cn/mmbiz_jpg/0QmKUOhLrEUlFKwj1jTONZYN48TJ6oTq7ztkJ3Abd26w3iaL00JZH27BaakEahqzX8oUTvNHiaBia7VUwzzUQs3mg/0" }</code></pre> <h5>已授权时,返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">result</td> <td style="text-align: left;">bool</td> <td>true已授权 false未授权或是没有开通第三方公众号授权</td> </tr> <tr> <td style="text-align: left;">openname</td> <td style="text-align: left;">string</td> <td>公众号主体名称</td> </tr> <tr> <td style="text-align: left;">url</td> <td style="text-align: left;">string</td> <td>公众号头像</td> </tr> <tr> <td style="text-align: left;">weixintype</td> <td style="text-align: left;">int</td> <td>账号类型 0 订阅号 1由历史老帐号升级后的订阅号 2服务号</td> </tr> <tr> <td style="text-align: left;">weixinname</td> <td style="text-align: left;">string</td> <td>昵称,公众号名称</td> </tr> <tr> <td style="text-align: left;">ercodeimg</td> <td style="text-align: left;">stirng</td> <td>公众号二维码</td> </tr> <tr> <td style="text-align: left;">appid</td> <td style="text-align: left;">string</td> <td>公众号APPID标识</td> </tr> <tr> <td style="text-align: left;">weixinopenid</td> <td style="text-align: left;">string</td> <td>公众号原始ID</td> </tr> <tr> <td style="text-align: left;">auth_url</td> <td style="text-align: left;">string</td> <td>重新授权的URL地址</td> </tr> <tr> <td style="text-align: left;">iswechatautologin</td> <td style="text-align: left;">int</td> <td>0不启用微信自动登录,1启用微信自动登录</td> </tr> <tr> <td style="text-align: left;">info</td> <td style="text-align: left;">object</td> <td>实时从公众号获取的基本信息</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML