// This file is auto-generated, don't edit it. Thanks.
package com.alipay.easysdk.marketing.openlife;
import com.aliyun.tea.*;
import com.alipay.easysdk.marketing.openlife.models.*;
public class Client {
public com.alipay.easysdk.kernel.Client _kernel;
public Client(com.alipay.easysdk.kernel.Client kernel) throws Exception {
this._kernel = kernel;
}
public AlipayOpenPublicMessageContentCreateResponse createImageTextContent(String title, String cover, String content, String contentComment, String ctype, String benefit, String extTags, String loginIds) throws Exception {
java.util.Map<String, Object> runtime_ = TeaConverter.buildMap(
new TeaPair("ignoreSSL", _kernel.getConfig("ignoreSSL")),
new TeaPair("httpProxy", _kernel.getConfig("httpProxy")),
new TeaPair("connectTimeout", 15000),
new TeaPair("readTimeout", 15000),
new TeaPair("retry", TeaConverter.buildMap(
new TeaPair("maxAttempts", 0)
))
);
TeaRequest _lastRequest = null;
long _now = System.currentTimeMillis();
int _retryTimes = 0;
while (Tea.allowRetry((java.util.Map<String, Object>) runtime_.get("retry"), _retryTimes, _now)) {
if (_retryTimes > 0) {
int backoffTime = Tea.getBackoffTime(runtime_.get("backoff"), _retryTimes);
if (backoffTime > 0) {
Tea.sleep(backoffTime);
}
}
_retryTimes = _retryTimes + 1;
try {
TeaRequest request_ = new TeaRequest();
java.util.Map<String, String> systemParams = TeaConverter.buildMap(
new TeaPair("method", "alipay.open.public.message.content.create"),
new TeaPair("app_id", _kernel.getConfig("appId")),
new TeaPair("timestamp", _kernel.getTimestamp()),
new TeaPair("format", "json"),
new TeaPair("version", "1.0"),
new TeaPair("alipay_sdk", _kernel.getSdkVersion()),
new TeaPair("charset", "UTF-8"),
new TeaPair("sign_type", _kernel.getConfig("signType")),
new TeaPair("app_cert_sn", _kernel.getMerchantCertSN()),
new TeaPair("alipay_root_cert_sn", _kernel.getAlipayRootCertSN())
);
java.util.Map<String, Object> bizParams = TeaConverter.buildMap(
new TeaPair("title", title),
new TeaPair("cover", cover),
new TeaPair("content", content),
new TeaPair("could_comment", contentComment),
new TeaPair("ctype", ctype),
new TeaPair("benefit", benefit),
new TeaPair("ext_tags", extTags),
new TeaPair("login_ids", loginIds)
);
java.util.Map<String, String> textParams = new java.util.HashMap<>();
request_.protocol = _kernel.getConfig("protocol");
request_.method = "POST";
request_.pathname = "/gateway.do";
request_.headers = TeaConverter.buildMap(
new TeaPair("host", _kernel.getConfig("gatewayHost")),
new TeaPair("content-type", "application/x-www-form-urlencoded;charset=utf-8")
);
request_.query = _kernel.sortMap(TeaConverter.merge(String.class,
TeaConverter.buildMap(
new TeaPair("sign", _kernel.sign(systemParams, bizParams, textParams, _kernel.getConfig("merchantPrivateKey")))
),
systemParams,
textParams
));
request_.body = Tea.toReadable(_kernel.toUrlEncodedRequestBody(bizParams));
_lastRequest = request_;
TeaResponse response_ = Tea.doAction(request_, runtime_);
java.util.Map<String, Object> respMap = _kernel.readAsJson(response_, "alipay.open.public.message.content.create");
if (_kernel.isCertMode()) {
if (_kernel.verify(respMap, _kernel.extractAlipayPublicKey(_kernel.getAlipayCertSN(respMap)))) {
return TeaModel.toModel(_kernel.toRespModel(respMap), new AlipayOpenPublicMessageContentCreateResponse());
}
} else {
if (_kernel.verify(respMap, _kernel.getConfig("alipayPublicKey"))) {
return TeaModel.toModel(_kernel.toRespModel(respMap), new AlipayOpenPublicMessageContentCreateResponse());
}
}
throw new TeaException(TeaConverter.buildMap(
new TeaPair("message", "验签失败,请检查支付宝公钥设置是否正确。")
));
} catch (Exception e) {
if (Tea.isRetryable(e)) {
continue;
}
throw new RuntimeException(e);
}
}
throw new TeaUnretryableException(_lastRequest);
}
public AlipayOpenPublicMessageContentModifyResponse modifyImageTextContent(String contentId, String title, String cover, String content, String couldComment, String ctype, String benefit, String extTags, String loginIds) throws Exception {
java.util.Map<String, Object> runtime_ = TeaConverter.buildMap(
new TeaPair("ignoreSSL", _kernel.getConfig("ignoreSSL")),
new TeaPair("httpProxy", _kernel.getConfig("httpProxy")),
new TeaPair("connectTimeout", 15000),
new TeaPair("readTimeout", 15000),
new TeaPair("retry", TeaConverter.buildMap(
new TeaPair("maxAttempts", 0)
))
);
TeaRequest _lastRequest = null;
long _now = System.currentTimeMillis();
int _retryTimes = 0;
while (Tea.allowRetry((java.util.Map<String, Object>) runtime_.get("retry"), _retryTimes, _now)) {
if (_retryTimes > 0) {
int backoffTime = Tea.getBackoffTime(runtime_.get("backoff"), _retryTimes);
if (backoffTime > 0) {
Tea.sleep(backoffTime);
}
}
_retryTimes = _retryTimes + 1;
try {
TeaRequest request_ = new TeaRequest();
java.util.Map<String, String> systemParams = TeaConverter.buildMap(
new TeaPair("method", "alipay.open.public.message.content.modify"),
new TeaPair("app_id", _kernel.getConfig("appId")),
new TeaPair("timestamp", _kernel.getTimestamp()),
new TeaPair("format", "json"),
new TeaPair("version", "1.0"),
new TeaPair("alipay_sdk", _kernel.getSdkVersion()),
new TeaPair("charset", "UTF-8"),
new TeaPair("sign_type", _kernel.getConfig("signType")),
new TeaPair("app_cert_sn", _kernel.getMerchantCertSN()),
new TeaPair("alipay_root_cert_sn", _kernel.getAlipayRootCertSN())
);
java.util.Map<String, Object> bizParams = TeaConverter.buildMap(
new TeaPair("content_id", contentId),
new TeaPair("title", title),
new TeaPair("cover", cover),
new TeaPair("content", content),
new TeaPair("could_comment", couldComment),
new TeaPair("ctype", ctype),
new TeaPair("benefit", benefit),
new TeaPair("ext_tags", extTags),
new TeaPair("login_ids", loginIds)
);
java.util.Map<String, String> textParams = new java.util.HashMap<>();
request_.protocol = _kernel.getConfig("p
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
这是一个基于PHP和Vue3的后台管理系统设计,使用PHP、JavaScript、Vue、TypeScript、Java、C#、CSS和HTML语言开发,包含6060个文件。主要文件类型包括3349个PHP文件、417个Markdown文档、371个JavaScript文件、340个Vue文件、233个SVG文件、182个TypeScript文件、176个PNG图片文件、144个TXT文件、135个Java源文件和101个C#源文件。该项目使用了流行的技术栈PHP8、TypeScript、ThinkPHP6、Vue3、vite2和Element Plus1.2(ElementUI),适合用于个人学习和实践PHP和Vue3的开发技术。
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP和Vue3的后台管理系统设计源码 (2000个子文件)
.eslintrc.cjs 1KB
.eslintrc.cjs 1KB
mysqld.cnf 1KB
www.likeadmin.host.conf 990B
nginx.conf 887B
entry.45273a4f.css 353KB
element-plus.15d7ebf9.css 205KB
iconfont.css 79KB
index.b5cd4dd9.css 63KB
u-icon.be3785a2.css 48KB
vue3-video-play.74881f83.css 27KB
index.1b7ee15e.css 26KB
uni.95e3cf00.css 15KB
@wangeditor.501cf061.css 14KB
z-paging.7a95433d.css 7KB
mounted.css 7KB
u-button.783ccba8.css 5KB
info.dd347dc1.css 4KB
error-404.95c28eb4.css 4KB
htmlDescriptor.css 3KB
index.bc338d75.css 3KB
var.css 2KB
u-loading.40000b4f.css 2KB
dark.css 2KB
error-500.e798523c.css 2KB
index.bb0b2626.css 2KB
var.css 2KB
u-modal.9d3ff959.css 2KB
recharge.83a8bd8e.css 2KB
default.9ebe9ad9.css 2KB
u-popup.3b64afbe.css 2KB
user_data.b59ee9d9.css 2KB
inline-demo.css 1KB
tabbar.2f388e18.css 1KB
u-form-item.7eef505b.css 1KB
picker.34f1bfed.css 1KB
highlight.47e00288.css 1KB
style-guide.css 1KB
news.e66c167a.css 1KB
u-avatar.62088d36.css 998B
preview.cd2b6fed.css 981B
oa-phone.aeac0131.css 941B
user_wallet.65835499.css 852B
u-avatar-cropper.91a54bb1.css 849B
u-search.e2c7903a.css 837B
nprogress.f5128a35.css 833B
u-badge.18002e3d.css 829B
u-input.8b49c1db.css 741B
user_set.c0273761.css 695B
tabbar.b97d06cc.css 693B
preview-pc.533e928f.css 671B
index.0e042cc4.css 667B
picker.06b4f03c.css 635B
content.a858306d.css 554B
options-boxes.css 515B
badges.css 431B
u-image.3bdd386b.css 428B
index.1fc2feec.css 409B
collection.c4157529.css 404B
news-card.22901b4f.css 403B
news_detail.7211692e.css 401B
index.2ace3fcf.css 397B
index.9bce7fe7.css 330B
search.a2c4704e.css 325B
pages.css 325B
u-empty.9f22fa9b.css 306B
ConfigForm.css 301B
menu.b8b6ee1d.css 287B
index.0d25a475.css 284B
attr.92a1baac.css 267B
attr.c85b3c94.css 267B
pay.5fb25fb7.css 266B
index.css 247B
error.be93caf8.css 240B
index.452a650d.css 232B
user.98e6b330.css 230B
security.307d3e35.css 230B
login.c89e8bb2.css 226B
decoration-img.49159595.css 192B
utilities.css 189B
content.dbc14b34.css 188B
layout.css 187B
content.75595e09.css 175B
content.7024f9f6.css 147B
content.8315767c.css 139B
content.4dd76d1a.css 129B
content.4dc19ec8.css 126B
payment_result.efbe7c91.css 115B
theme-picker.3de068d5.css 110B
as_us.e6094ced.css 91B
pc_details.fdae9be3.css 88B
u-verification-code.e967c1e9.css 74B
tailwind.css 72B
tailwind.css 58B
u-parse.aaf4bd6b.css 54B
index.a318de61.css 52B
bind_mobile.57307324.css 44B
change_password.3ccaa0a2.css 44B
register.28e18e20.css 44B
forget_pwd.999a6d7f.css 44B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
沐知全栈开发
- 粉丝: 5810
- 资源: 5218
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Vue和SpringBoot的企业员工管理系统2.0版本设计源码
- 【C++初级程序设计·配套源码】第2期-基本数据类型
- 基于Java和Vue的kopsoftKANBAN车间电子看板设计源码
- 影驰战将PS3111 东芝芯片TT18G23AIN开卡成功分享,图片里面画线的选项很重要
- 【C++初级程序设计·配套源码】第1期-语法基础
- 基于JavaScript、CSS、HTML的简易DOM版飞机游戏设计源码
- 基于Java开发的日程管理FlexTime应用设计源码
- SM2258XT-BGA144-4BGA180-6L-R1019 三星KLUCG4J1CB B0B1颗粒开盘工具 , EC, 3A, 94, 43, A4, CA 七彩虹SL300这个固件有用
- GJB 5236-2004 军用软件质量度量
- 30天开发操作系统 第 8 天 - 鼠标控制与切换32模式
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功