millet0328 / wechat-mall

基于ColorUI的微信小程序商城
5 stars 3 forks source link

您好,打扰一下 ,运行您的项目时发现有一点点小问题,百思不得其解,可否帮忙解答 #1

Open wangguangzhong opened 4 years ago

wangguangzhong commented 4 years ago

在小程序里面报错“VM228 asdebug.js:1 GET http://localhost:3003/api/category/sub?pId=1 401 (Unauthorized)” 运行链接时会出现以下内容,请问该如何操作 {"status":401,"name":"UnauthorizedError","message":"No authorization token was found","code":"credentials_required","inner":{"message":"No authorization token was found"}}

millet0328 commented 4 years ago

在小程序里面报错“VM228 asdebug.js:1 GET http://localhost:3003/api/category/sub?pId=1 401 (Unauthorized)” 运行链接时会出现以下内容,请问该如何操作 {"status":401,"name":"UnauthorizedError","message":"No authorization token was found","code":"credentials_required","inner":{"message":"No authorization token was found"}}

此小程序需要一个后台程序提供API,请转到 https://github.com/luotuo19880328/nodejs-mysql-wechat,本地部署好后台程序,记得修改成自己微信开发平台的appid