🎨 题库服务地址变更
This commit is contained in:
parent
20bfa3296e
commit
fee63477b8
@ -8,6 +8,7 @@ import com.rymcu.forest.entity.User;
|
|||||||
import com.rymcu.forest.enumerate.TransactionEnum;
|
import com.rymcu.forest.enumerate.TransactionEnum;
|
||||||
import com.rymcu.forest.util.HttpUtils;
|
import com.rymcu.forest.util.HttpUtils;
|
||||||
import com.rymcu.forest.util.UserUtils;
|
import com.rymcu.forest.util.UserUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -20,7 +21,8 @@ import java.util.Map;
|
|||||||
@RequestMapping("/api/v1/answer")
|
@RequestMapping("/api/v1/answer")
|
||||||
public class AnswerController {
|
public class AnswerController {
|
||||||
|
|
||||||
private final static String ANSWER_API_URL = "https://test.rymcu.com/subject/question";
|
@Value("${resource.answer-api-url}")
|
||||||
|
private String ANSWER_API_URL;
|
||||||
|
|
||||||
@GetMapping("/today")
|
@GetMapping("/today")
|
||||||
public GlobalResult today() {
|
public GlobalResult today() {
|
||||||
|
@ -34,7 +34,7 @@ spring:
|
|||||||
test-while-idle: true
|
test-while-idle: true
|
||||||
test-on-borrow: false
|
test-on-borrow: false
|
||||||
test-on-return: false
|
test-on-return: false
|
||||||
connection-properties: config.decrypt=true;config.decrypt.key=${publickey}
|
connection-properties: config.decrypt=true;config.decrypt.key=${publicKey}
|
||||||
filters: config,stat
|
filters: config,stat
|
||||||
max-pool-prepared-statement-per-connection-size: 100
|
max-pool-prepared-statement-per-connection-size: 100
|
||||||
stat-view-servlet:
|
stat-view-servlet:
|
||||||
@ -50,29 +50,6 @@ spring:
|
|||||||
port: 465
|
port: 465
|
||||||
username: service@rymcu.com
|
username: service@rymcu.com
|
||||||
password: 4W3tCXdyk0Gm
|
password: 4W3tCXdyk0Gm
|
||||||
wx:
|
|
||||||
open:
|
|
||||||
componentAppId: wx9c4a7dfb3238d5f6
|
|
||||||
componentSecret: e32a6f75ab6b746ec3ae38a39a79ba22
|
|
||||||
componentToken: rymcu
|
|
||||||
componentAesKey: NWIwMDQyZjU0YWI2NGFlZThkOWZhZTg3NTg4NzQwN2E
|
|
||||||
mp:
|
|
||||||
configs:
|
|
||||||
- appId: wxf085386aa07c0857
|
|
||||||
secret: aabd075d2851764714fd14a0d0b1b8b4
|
|
||||||
token: rymcu
|
|
||||||
aesKey: lvn3mMSnFOvbnIJVNhHQqjWb9swe66L1xIcerJSs0fm
|
|
||||||
- appId: wxa49093339a5a822b
|
|
||||||
secret: 29e9390e6d58d57a2b2a2350dbee8754
|
|
||||||
token: qwert
|
|
||||||
aesKey:
|
|
||||||
miniapp:
|
|
||||||
configs:
|
|
||||||
- appid: wxb4fff78a6b878cf7
|
|
||||||
secret: c8735d0ccc8497b8509dc2762246cb37
|
|
||||||
token: #微信小程序消息服务器配置的token
|
|
||||||
aesKey: #微信小程序消息服务器配置的EncodingAESKey
|
|
||||||
msgDataFormat: JSON
|
|
||||||
env: dev
|
env: dev
|
||||||
logging:
|
logging:
|
||||||
file:
|
file:
|
||||||
@ -85,16 +62,12 @@ server:
|
|||||||
servlet:
|
servlet:
|
||||||
context-path: /forest
|
context-path: /forest
|
||||||
max-http-header-size: 1048576
|
max-http-header-size: 1048576
|
||||||
|
shutdown: graceful
|
||||||
|
tomcat:
|
||||||
|
reject-illegal-header: false
|
||||||
version: 1.0
|
version: 1.0
|
||||||
resource:
|
resource:
|
||||||
domain: http://test.rymcu.com
|
domain: https://test.rymcu.com
|
||||||
file-path: http://test.rymcu.com
|
file-path: https://test.rymcu.com
|
||||||
pic-path: /opt/nebula/static
|
pic-path: /opt/nebula/static
|
||||||
baidu:
|
answer-api-url: https://test.rymcu.com/subject/question
|
||||||
data:
|
|
||||||
site: https://rymcu.com
|
|
||||||
token: 9cdKR6bVCJzxDEJS
|
|
||||||
ai:
|
|
||||||
appId: 22891829
|
|
||||||
appKey: HKxdO8ioaUmltZh0eaOVMsmW
|
|
||||||
secretKey: GXOtl3XtiIkVA3CPsc3c29Pqa4V290Yr
|
|
||||||
|
@ -71,12 +71,5 @@ resource:
|
|||||||
domain: http://yourdomain.com # 网站域名
|
domain: http://yourdomain.com # 网站域名
|
||||||
file-path: http://yourdomain.com # 上传文件前缀域名
|
file-path: http://yourdomain.com # 上传文件前缀域名
|
||||||
pic-path: /yoursrc/xx/nebula/static # 上传文件存储地址
|
pic-path: /yoursrc/xx/nebula/static # 上传文件存储地址
|
||||||
baidu:
|
answer-api-url: https://test.rymcu.com/subject/question
|
||||||
data:
|
|
||||||
site: https://yourdomain.com # 百度搜索绑定网站域名
|
|
||||||
token: xxxx
|
|
||||||
ai:
|
|
||||||
appId: xxx # 百度AI-文字识别 应用 appId
|
|
||||||
appKey: xxxx # 百度AI-文字识别 应用 appKey
|
|
||||||
secretKey: xxxx # 百度AI-文字识别 应用 secretKey
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user