vault backup: 2024-10-25 19:53:14
This commit is contained in:
parent
e015123b93
commit
e5a8117d22
|
|
@ -7,5 +7,6 @@
|
||||||
"margin": "0",
|
"margin": "0",
|
||||||
"downscalePercent": 100
|
"downscalePercent": 100
|
||||||
},
|
},
|
||||||
"tabSize": 2
|
"tabSize": 2,
|
||||||
|
"promptDelete": false
|
||||||
}
|
}
|
||||||
|
|
@ -18,21 +18,8 @@
|
||||||
"source": false
|
"source": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "ccb94e79088620cb",
|
|
||||||
"type": "leaf",
|
|
||||||
"state": {
|
|
||||||
"type": "markdown",
|
|
||||||
"state": {
|
|
||||||
"file": "Spark搭建/liu.md",
|
|
||||||
"mode": "source",
|
|
||||||
"source": false
|
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
|
||||||
],
|
|
||||||
"currentTab": 1
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
|
|
@ -98,7 +85,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Spark搭建/liu.md",
|
"file": "Spark搭建/spark-streaming.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
|
|
@ -115,7 +102,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Spark搭建/liu.md",
|
"file": "Spark搭建/spark-streaming.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
|
|
@ -138,7 +125,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Spark搭建/liu.md"
|
"file": "Spark搭建/spark-streaming.md"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -168,12 +155,12 @@
|
||||||
"obsidian-git:Open Git source control": false
|
"obsidian-git:Open Git source control": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "ccb94e79088620cb",
|
"active": "a6359902bf66f6d5",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Spark搭建/liu.md",
|
||||||
"Spark搭建/spark-streaming.md",
|
"Spark搭建/spark-streaming.md",
|
||||||
"README.md",
|
"README.md",
|
||||||
"Spark搭建/spark-sql.md",
|
"Spark搭建/spark-sql.md",
|
||||||
"Spark搭建/liu.md",
|
|
||||||
"Spark搭建/scala与rdd编程.md",
|
"Spark搭建/scala与rdd编程.md",
|
||||||
"未命名.md",
|
"未命名.md",
|
||||||
"Spark搭建/01.md",
|
"Spark搭建/01.md",
|
||||||
|
|
|
||||||
154
Spark搭建/liu.md
154
Spark搭建/liu.md
|
|
@ -1,154 +0,0 @@
|
||||||
面板地址:http://8.136.98.104:8888/94a38c61
|
|
||||||
用户名:xd7liy29
|
|
||||||
密码:35997cf5
|
|
||||||
|
|
||||||
线上数据库
|
|
||||||
ip:8.136.98.104
|
|
||||||
username: sale_shop_sql
|
|
||||||
password: Fhhbj77t8PiBwZfk
|
|
||||||
|
|
||||||
可用域名
|
|
||||||
app.xtbssh.com
|
|
||||||
manage.xtbssh.com
|
|
||||||
shop.xtbssh.com
|
|
||||||
supplier.xtbssh.com
|
|
||||||
agent.xtbssh.com
|
|
||||||
|
|
||||||
墨刀
|
|
||||||
https://modao.cc/app/lLpVYc5Qs9wodpiUykyqU #星斗堂效果图-分享
|
|
||||||
https://modao.cc/app/vdyMYyeZs92ypjUhNoQH2 #星斗堂后台原型-分享
|
|
||||||
https://modao.cc/app/VEUj338Ysbo5jjMiBhedD3 #星斗堂-商家&代理商-分享
|
|
||||||
|
|
||||||
接口缺失
|
|
||||||
https://shimo.im/sheets/XKq42enQmpSrDLAN/3nOXa
|
|
||||||
|
|
||||||
|
|
||||||
0.配置
|
|
||||||
商户业务开通: https://paas.huifu.com/partners/api/#/shgl/shywkt/api_shjj_shywkt_kyc
|
|
||||||
开通延迟: delay_flag = Y
|
|
||||||
分账配置: split_conf_info
|
|
||||||
1.企业用户开户 https://paas.huifu.com/partners/api/#/yhgl/api_yhgl_qyyhjbxxzc
|
|
||||||
个人用户开户 https://paas.huifu.com/partners/api/#/yhgl/api_yhgl_gryhjbxxzc
|
|
||||||
用户业务入驻 https://paas.huifu.com/partners/api/#/yhgl/api_yhgl_ywrz
|
|
||||||
2.聚合正扫接口 https://paas.huifu.com/partners/api/#/smzf/api_jhzs
|
|
||||||
如果延迟分账:delay_acct_flag = Y
|
|
||||||
3.交易确认接口 https://paas.huifu.com/partners/api/#/smzf/api_jyqr
|
|
||||||
|
|
||||||
免感词、敏感图:
|
|
||||||
腾讯云数据万象产品:内容审核包、基础图片处理包
|
|
||||||
接口文档:https://cloud.tencent.com/document/product/460/56285
|
|
||||||
SecretId:AKID1wiJjwvfEZjiTzJPFJORbiimqlU2Towp
|
|
||||||
SecretKey:nXGoM2hHwUCm9Nn58wb8tiRG4xmWL5rX
|
|
||||||
|
|
||||||
[//]: # (即时通讯:)
|
|
||||||
|
|
||||||
[//]: # (SDKappid:1600036400)
|
|
||||||
|
|
||||||
[//]: # (密钥:c465d1d956bdc9bc3b37d7a71459b376f3741d3ea9c3a0b1dade35b9e093ea24)
|
|
||||||
|
|
||||||
阿里云物流
|
|
||||||
AppKey:204599373
|
|
||||||
AppSecret:6gbI9RscmZSRzzDKIq9kw1NqRErqvFZS
|
|
||||||
AppCode:f2dd4743c1ea43acb20fe00ba2b464b0
|
|
||||||
|
|
||||||
阿里云(短信...):
|
|
||||||
AccessKey ID:LTAI4G5B3ukNjstj4pb5HqDo
|
|
||||||
AccessKey Secret: 192Sg99sW3rRRqeYOEpskxxj8iKexL
|
|
||||||
- 模板名称
|
|
||||||
用户注册验证码
|
|
||||||
模板CODE
|
|
||||||
SMS_201690237
|
|
||||||
模板内容
|
|
||||||
验证码${code},您正在注册成为新用户,感谢您的支持!
|
|
||||||
- 模板名称
|
|
||||||
登录确认验证码
|
|
||||||
模板CODE
|
|
||||||
SMS_201690239
|
|
||||||
模板内容
|
|
||||||
验证码${code},您正在登录,若非本人操作,请勿泄露。
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
飘儿:
|
|
||||||
全国快递物流查询-快递查询接口
|
|
||||||
https://market.aliyun.com/products/57002002/cmapi021863.html?spm=5176.2020520132.101.20.54367218EQFsfm#sku=yuncode15863000017
|
|
||||||
|
|
||||||
AppKey:204599373 AppSecret:6gbI9RscmZSRzzDKIq9kw1NqRErqvFZS 复制
|
|
||||||
|
|
||||||
AppCode:f2dd4743c1ea43acb20fe00ba2b464b0复制
|
|
||||||
|
|
||||||
飘儿:
|
|
||||||
银行卡四要素-银行卡实名认证-银行卡四要素实名认证-银行卡四要素-银行卡三要素-银行卡三要素实名认证-银行卡四要素实名认证
|
|
||||||
|
|
||||||
https://market.aliyun.com/products/57000002/cmapi00038220.html?spm=5176.2020520132.101.3.54367218EQFsfm#sku=yuncode32220000019
|
|
||||||
|
|
||||||
AppKey:204599373 AppSecret:6gbI9RscmZSRzzDKIq9kw1NqRErqvFZS 复制
|
|
||||||
|
|
||||||
AppCode:f2dd4743c1ea43acb20fe00ba2b464b0复制
|
|
||||||
|
|
||||||
飘儿:
|
|
||||||
云盾身份认证(三要素)--三网分别计费
|
|
||||||
|
|
||||||
https://market.aliyun.com/products/57000002/cmapi029847.html?spm=5176.2020520132.101.11.54367218EQFsfm
|
|
||||||
|
|
||||||
|
|
||||||
AppKey:204599373 AppSecret:6gbI9RscmZSRzzDKIq9kw1NqRErqvFZS 复制
|
|
||||||
|
|
||||||
AppCode:f2dd4743c1ea43acb20fe00ba2b464b0复制
|
|
||||||
|
|
||||||
微信开放平台登录相关:
|
|
||||||
APPID:wx90bee3d5b5fab015
|
|
||||||
AppSecret:ebb83f020a407649f1704087049d8fee
|
|
||||||
|
|
||||||
用户端AppID(小程序ID)wxd793ec38351a0987
|
|
||||||
AppSecret(小程序密钥)b269ca6427da37548efe66e666ff86e9
|
|
||||||
|
|
||||||
商家AppID(小程序ID)wxe37e851ff4d67681
|
|
||||||
AppSecret(小程序密钥)699d5e26876bea4969483caeaf63d652
|
|
||||||
|
|
||||||
```java
|
|
||||||
@Autowired
|
|
||||||
private SettingUtils settingUtils;
|
|
||||||
@Autowired
|
|
||||||
private UploadFactory uploadFactory;
|
|
||||||
/**
|
|
||||||
* 上传文件
|
|
||||||
* @param multipartFile
|
|
||||||
*/
|
|
||||||
public synchronized void upload(MultipartFile multipartFile, UploadFile file) throws Exception {
|
|
||||||
StorageVo storageVo;
|
|
||||||
// 获取当前的HttpServletRequest对象
|
|
||||||
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
||||||
HttpServletRequest request = attributes.getRequest();
|
|
||||||
// 请求路径 /api/admin/file/upload/image
|
|
||||||
String path = request.getRequestURI();
|
|
||||||
if(path.startsWith("/api/admin/file/upload/image")){
|
|
||||||
//获取admin端配置
|
|
||||||
JSONObject vo = settingUtils.getSetting(SettingEnum.SYS_CONFIG.getKey(), 0L);
|
|
||||||
JSONObject storage = vo.getJSONObject("storageVo");
|
|
||||||
storageVo = JSONObject.toJavaObject(storage, StorageVo.class);
|
|
||||||
}else {
|
|
||||||
//获取shop端配置
|
|
||||||
JSONObject vo = settingUtils.getSetting(SettingEnum.STORAGE.getKey(), null);
|
|
||||||
storageVo = JSONObject.toJavaObject(vo, StorageVo.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
UploadFactoryService service = uploadFactory.getService(storageVo.getCurrent());
|
|
||||||
// 保存文件名
|
|
||||||
String originalFilename = multipartFile.getOriginalFilename();
|
|
||||||
String saveFileName = new DefaultUploadFileNameHandleImpl().handle(originalFilename);
|
|
||||||
// 开始上传
|
|
||||||
service.upload(multipartFile, saveFileName);
|
|
||||||
file.setFileName(saveFileName);
|
|
||||||
file.setStorage(storageVo.getCurrent());
|
|
||||||
if(StorageEnum.QINIU.getValue().equals(storageVo.getCurrent())){
|
|
||||||
file.setFileUrl(storageVo.getQiNiu().getDomain());
|
|
||||||
}else if(StorageEnum.ALIYUN.getValue().equals(storageVo.getCurrent())){
|
|
||||||
file.setFileUrl(storageVo.getAliYun().getDomain());
|
|
||||||
}else if(StorageEnum.QCLOUD.getValue().equals(storageVo.getCurrent())){
|
|
||||||
file.setFileUrl(storageVo.getQCloud().getDomain());
|
|
||||||
}else if(StorageEnum.HWCLOUD.getValue().equals(storageVo.getCurrent())){
|
|
||||||
file.setFileUrl(storageVo.getHwCloud().getDomain());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Loading…
Reference in New Issue