当前位置: 首页 > news >正文

php网站开发技术 pdf国外做网站

php网站开发技术 pdf,国外做网站,html5 公司网站,最佳建站模板我试图调用一个api#xff0c;但出现错误“未处理的承诺被拒绝#xff1a;错误#xff1a;请求失败#xff0c;状态码为500”。 我不知道如何得到错误。我将api调用放在componentDidMount中。 我不确定错误是来自redux实现还是来自我的api。这就是我所谓的api。 成功登录后…我试图调用一个api但出现错误“未处理的承诺被拒绝错误请求失败状态码为500”。 我不知道如何得到错误。我将api调用放在componentDidMount中。 我不确定错误是来自redux实现还是来自我的api。这就是我所谓的api。 成功登录后我将用户名作为令牌并使用它来调用另一个api。state{username: ,semcode: [{}]}componentWillMount() {AsyncStorage.getItem(Login_token).then((token) {console.log(this is coursescreen,token);let Login_token token;this.setState({ username: Login_token });});}componentDidMount(){this.props.getSemcode(this.state.username);}componentWillReceiveProps(nextProps) {console.log(xx,nextProps);if (nextProps.semCode ! undefined) {this.setState({ semcode: nextProps.semCode });}}这是我编写动作文件的方式export const getSemcode (username) async dispatch {let param {nomatrik: username,}console.log(${helper.ROOT_URL}/result/GetListOfKodSesiSem)let code_res awaitaxios.post(${helper.ROOT_URL}/result/GetListOfKodSesiSem, param)console.log(code_res.data);if (code_res.data.length 0) {const { code } code_res.data;dispatch({ type: SEMCODE_FETCH_SUCCESS, payload: { semCode: code }});}}这是我编写减速器的方式import { SEMCODE_FETCH_SUCCESS} from ../actions/types;const INITIAL_STATE{semCode:[],}export default function (stateINITIAL_STATE, action){switch(action.type){case SEMCODE_FETCH_SUCCESS:return action.payloaddefault:return state;}}谁能帮助我错误信息从axios.post接收到错误{“ config”{“ transformRequest”{}“ transformResponse”{}“超时”0“ xsrfCookieName”“ XSRF-令牌”“ xsrfHeaderName”“ X- XSRF-TOKEN“” maxContentLength“-1” headers“{” Accept“” application / jsontext / plain / “” Content- Type“” application / json; charset utf-8“ }“ method”“ post”“ nomatrik”“ BB16160907”“ url”“ https://smp.ums.edu.my/api/result/GetListOfKodSesiSem ”“ data”“ {\\”接受\\“\\”应用程序/ json \\“\\”内容类型\\“\\”应用程序/ json \\“}”}“请求”{“ UNSENT”0“ OPENED”1“ HEADERS_RECEIVED “2” LOADING“3” DONE“4” readyState“4”状态“500”超时“0” withCredentials“true”上传“{}” _ aborted“ false“ _ hasError”false“ _ method”“ POST”“ _ response”“ {\\” Message \\“\\”发生错误。\\“}”“ _url”“ https// smp.ums.edu.my/api/result/GetListOfKodSesiSem “” _timedOut“false” _ trackingName“”未知“” _incrementalEvents“false” responseHeaders“{” Date“” 2017年12月30日星期六03:58:25 GMT“”内容长度“” 36“” X-Powered-By“” ARR / 3.0“” X-AspNet-Ve rsion“” 4.0.30319“” Expires“”-1“” Content-Type“” application / json; charset utf-8”“服务器”“ Microsoft-IIS / 10.0”“编译指示”“ no-cache”“ Cache-Control”“ no-cache”}“ _ requestId”null“ _ headers” “{” accept“”应用程序/ json文本/纯文本 / “”内容类型“”应用程序/ json; charset utf-8“}” _ responseType“”“” _ sent“true “ _ lowerCaseResponseHeaders”{“ date”“星期六2017年12月30日03:58:25 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0”“ x -aspnet-version“” 4.0.30319“” expires“”-1“” content-type“” application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“”无缓存“”缓存控制“”无缓存“}” _ subscriptions“[]” responseURL“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “}” response“{” data“{” Message“”发生错误。“}”状态“ 500“ headers”{“ date”“ Sat30 Dec 2017 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0” “ x- aspnet-version”“ 4.0.30319”“ expires”“-1”“ content-type”“ application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“” no-cache“” cache-control“” no-cache“}” config“{” transformRequest“ {}“ transformResponse”{}“超时”0“ xsrfCookieName”“ XSRF-TOKEN”“ xsrfHeaderName”“ X-XSRF-TOKEN”“ maxContentLength”-1“标题” {“ Accept”“应用程序/ json文本/纯文本 / ”“ Content-Type”“ application / json; charset utf-8”}“ method”“ post”“ nomatrik”“ BB16160907 “” url“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “” data“” {\\“ Accept \\”\\“ application / json \\”\\“ Content- Type \\“\\” application / json \\“}”}“ request”{“ UNSENT”0“ OPENED”1“ HEADERS_RECEIVED”2“ LOADING”3“ DONE”4 “ readyState”4“ status”500“ timeout”0“ withCredentials”true“ upload”{}“ _ aborted”false“ _ hasError”false“ _ method”“ POST” “ _ response”“ {\\”消息\\“\\”发生错误。\\“}”“ _url”“ https://smp.ums.edu.my/api/result/GetListOfKodSesiSem ”“ _timedOut“false” _ trackingName“”未知“” _ incrementalEvents“false” responseHeaders“{” Date“” Sat30 Dec 2017 03:58:25 GMT“” Content- Length“” 36“” X-Powered-By“” ARR / 3.0“” X-AspNet- Version“” 4.0.30319“” Expires“”-1“” Content-Type “” application / json; charset utf-8”“服务器”“ Microsoft-IIS / 10.0”“编译指示”“ no-cache”“ Cache-Control”“ no-cache”}“ _ requestId”null“ _ headers” “{” accept“”应用程序/ json文本/纯文本 / “”内容类型“”应用程序/ json; charset utf-8“}” _ responseType“”“” _ sent“true “ _ lowerCaseResponseHeaders”{“ date”“星期六2017年12月30日03:58:25 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0”“ x -aspnet-version“” 4.0.30319“” expires“”-1“” content-type“” application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“”无缓存“”缓存控制“”无缓存“}” _ subscriptions“[]” responseURL“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “}}}登录操作export const attemptLogin (username, password) async dispatch {let param {txtNomatrik: username,txtPwd: password,public_key: helper.PUBLIC_KEY,secret_key: helper.SECRET_KEY}console.log(${helper.ROOT_API_URL}/v1/basic/ad/std/login)let login_res awaitaxios.post(${helper.ROOT_API_URL}/v1/basic/ad/std/login, param)console.log(login_res.data);await AsyncStorage.setItem(jwtToken,login_res.data.token);if (login_res.data.status Successful login) {const { login } login_res.data;dispatch({ type: LOGIN_SUCCESS});}}
http://wiki.neutronadmin.com/news/154390/

相关文章:

  • 舟山网站建设开发爱站网的关键词是怎么来的
  • 长安网站建设方案WordPress会员密码查看
  • 网站被k的表现苏州优化网站公司
  • 做好网站维护管理如何建设好营销网站
  • 模块化局域网网站建设软件微商城分销系统制作
  • 深圳网站建设优化排名别人做的网站怎么打开吗
  • 建筑招聘网站哪个好深圳市有方科技有限公司
  • 美食制作网站模板免费下载自己做博客网站
  • 一个网站要多大的空间公司网站建设需要哪些设备
  • 新乡百度网站推广工具国外视觉差网站
  • 上海网站开发有限公司百度推广有哪些售后服务
  • 前端页面设计网站ppt免费下载模板网站
  • 户外媒体网站建设免费网站建设规划表
  • 国内做音乐网站做远程培训网站用什么系统
  • 服装企业网站源码河北高端建设网站
  • 安徽建站优化没有网站可以做seo排名吗
  • 做外贸的j交易网站网站套餐到期啥意思
  • 如何建单位网站大连seo排名
  • 网站前端是什么seo数据优化教程
  • 建设部网站39文件网站开发全程实例
  • 网站开发公司内部数据字典北京关键词优化报价
  • 博罗网站设计公司seo优化评论
  • 上海网站设计的公司做膜结构那个网站好
  • 网站县区分站点建设网站的前端和后端
  • 有做外贸的平台网站吗哪个好用?
  • 济南网站建设seo优化设计室内装修效果图
  • wordpress网站弹窗插件wordpress 模板 含数据
  • pc端网站建设哪里有做网站不给源代码
  • 建设银行网站的目的是什么wordpress查询码
  • 恐怖音乐怎么做的视频网站wordpress 用户 插件