13913926144 发表于 2021-3-9 19:43:20

OA已经做了外网端口映射(urlmapping),但是微信小程序中调用的api端口还有20020

VM8 asdebug.js:1 POST https://xxx.xxx.com:20020/x_organization_assemble_authentication/jaxrs/authentication net::ERR_CONNECTION_TIMED_OUT
b @ VM8 asdebug.js:1
请求异常 接口:https://xxx.xxxx.com:20020/x_organization_assemble_authentication/jaxrs/authentication参数: {credential: "0111366", password: "12345678"}
返回值: {errMsg: "request:fail "}


如何修改api中的端口:

                                                                        O2OA Service API URL
                                                                                云文件                        com.x.base.core.project.x_file_assemble_control                        https://xxxx.com:20020/x_file_assemble_control/jest/index.html                                                        会议管理                        com.x.base.core.project.x_meeting_assemble_control                        https://xxxx.com:20020/x_meeting_assemble_control/jest/index.html                                                        公共模块                        com.x.base.core.project.x_general_assemble_control                        https://xxxx.com:20020/x_general_assemble_control/jest/index.html                                                        内容管理                        com.x.base.core.project.x_cms_assemble_control                        https://xxxx.com:20020/x_cms_assemble_control/jest/index.html                       

13913926144 发表于 2021-3-9 23:33:29

nginx代理配置成了单个端口上下文根的方式配置访问地址,但是小程序中调用的接口还是出现20020
    listen       80;    server_nameharbor.o2oa.net;    location /dev/web/ {      proxy_pass   http://172.16.96.130/;    }    location /dev/center/ {      proxy_pass   http://172.16.96.130:20030/;    }    location /dev/app/ {      proxy_pass   http://172.16.96.130:20020/;    }

论坛管理员 发表于 2021-3-10 13:55:46

您好:微信小程序 是您自己集成的吗?

13913926144 发表于 2021-3-10 14:47:17

微信小程序是从开源地址下载的https://www.o2oa.net/course/zlqq0x.html,也根据说明进行了js配置修改
https://github.com/o2oa/o2oa-mini-program/

13913926144 发表于 2021-3-10 14:49:18

是不是需要修改微信小程序的代码才行?

论坛管理员 发表于 2021-3-11 10:16:12

您好:这样的外网配置,现在暂时只支持pc端。
您可以参考一下这个配置。

https://www.yuque.com/o2oa/course/ar1gnh

曟顮 发表于 2021-7-23 19:42:38

怎么看不到你的图片

曟顮 发表于 2021-7-23 19:42:59

看不到你的图片
页: [1]
查看完整版本: OA已经做了外网端口映射(urlmapping),但是微信小程序中调用的api端口还有20020