Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
37895e79
Commit
37895e79
authored
Nov 22, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信调货通知调整
parent
babf89dc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
15 deletions
+21
-15
SendchampHttp.java
...va/cn/iocoder/yudao/framework/http/sms/SendchampHttp.java
+5
-3
WhisperClientHttp.java
...n/iocoder/yudao/framework/http/sms/WhisperClientHttp.java
+5
-3
YCloudWhatsappHttp.java
.../iocoder/yudao/framework/http/sms/YCloudWhatsappHttp.java
+7
-5
SendchampSmsClient.java
...rk/sms/core/client/impl/sendchamp/SendchampSmsClient.java
+1
-1
YCloudSmsClient.java
...ramework/sms/core/client/impl/yCloud/YCloudSmsClient.java
+1
-1
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+2
-2
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
example
/SendchampHttp.java
→
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
sms
/SendchampHttp.java
View file @
37895e79
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
example
;
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
sms
;
import
cn.iocoder.yudao.framework.http.core.Request
;
import
cn.iocoder.yudao.framework.http.core.Response
;
import
cn.iocoder.yudao.framework.http.core.client.HttpClient
;
import
cn.iocoder.yudao.framework.http.core.client.HttpClientFactory
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
org.jetbrains.annotations.NotNull
;
import
java.util.HashMap
;
...
...
@@ -15,6 +16,7 @@ import java.util.Map;
* @author wuxian
* @since 2024-10-23
**/
@Slf4j
public
class
SendchampHttp
{
private
static
final
String
SMS_URL
=
"https://api.sendchamp.com/api/v1/sms/send"
;
...
...
@@ -27,8 +29,8 @@ public class SendchampHttp {
req
.
setParamFormat
(
Request
.
ParamFormat
.
JSON
);
try
{
Response
res
=
client
.
execute
(
req
,
Request
.
Option
.
create
(
0
,
0
,
header
));
System
.
out
.
printl
n
(
"response code ---------------------------->"
+
res
.
getCode
());
System
.
out
.
printl
n
(
"response content is --------------------》"
+
res
.
getBody
());
log
.
war
n
(
"response code ---------------------------->"
+
res
.
getCode
());
log
.
war
n
(
"response content is --------------------》"
+
res
.
getBody
());
return
res
;
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
example
/WhisperClientHttp.java
→
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
sms
/WhisperClientHttp.java
View file @
37895e79
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
example
;
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
sms
;
import
cn.iocoder.yudao.framework.http.core.Request
;
import
cn.iocoder.yudao.framework.http.core.Response
;
import
cn.iocoder.yudao.framework.http.core.client.HttpClient
;
import
cn.iocoder.yudao.framework.http.core.client.HttpClientFactory
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
...
...
@@ -14,6 +15,7 @@ import java.util.Map;
* @author wuxian
* @since 2024-10-23
**/
@Slf4j
public
class
WhisperClientHttp
{
public
void
testPost
(){
...
...
@@ -47,8 +49,8 @@ public class WhisperClientHttp {
req
.
setParamFormat
(
Request
.
ParamFormat
.
JSON
);
try
{
Response
res
=
client
.
execute
(
req
,
Request
.
Option
.
create
(
0
,
0
,
header
));
System
.
out
.
printl
n
(
"response code ---------------------------->"
+
res
.
getCode
());
System
.
out
.
printl
n
(
"response content is --------------------》"
+
res
.
getBody
());
log
.
war
n
(
"response code ---------------------------->"
+
res
.
getCode
());
log
.
war
n
(
"response content is --------------------》"
+
res
.
getBody
());
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
example
/YCloudWhatsappHttp.java
→
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/http/
sms
/YCloudWhatsappHttp.java
View file @
37895e79
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
example
;
package
cn
.
iocoder
.
yudao
.
framework
.
http
.
sms
;
import
cn.iocoder.yudao.framework.common.util.json.JsonUtils
;
import
cn.iocoder.yudao.framework.http.core.Request
;
...
...
@@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.http.core.Response;
import
cn.iocoder.yudao.framework.http.core.client.HttpClient
;
import
cn.iocoder.yudao.framework.http.core.client.HttpClientFactory
;
import
lombok.SneakyThrows
;
import
lombok.extern.slf4j.Slf4j
;
import
java.time.ZoneId
;
import
java.time.ZonedDateTime
;
...
...
@@ -16,6 +17,7 @@ import java.util.*;
* @author wuxian
* @since 2024-10-30
**/
@Slf4j
public
class
YCloudWhatsappHttp
{
private
HttpClient
client
=
null
;
...
...
@@ -36,8 +38,8 @@ public class YCloudWhatsappHttp {
Request
req
=
Request
.
create
(
WA_URL
,
Request
.
Method
.
POST
,
param
);
req
.
setParamFormat
(
Request
.
ParamFormat
.
JSON
);
Response
res
=
client
.
execute
(
req
,
Request
.
Option
.
create
(
0
,
0
,
header
));
System
.
out
.
printl
n
(
"response code ---------------------------->"
+
res
.
getCode
());
System
.
out
.
printl
n
(
"response content is --------------------》"
+
res
.
getBody
());
log
.
war
n
(
"response code ---------------------------->"
+
res
.
getCode
());
log
.
war
n
(
"response content is --------------------》"
+
res
.
getBody
());
return
res
;
}
...
...
@@ -45,8 +47,8 @@ public class YCloudWhatsappHttp {
public
Response
getReceiveStatus
(
Map
<
String
,
String
>
header
,
String
id
)
{
Request
req
=
Request
.
create
(
RECEIVE_URL
+
id
,
Request
.
Method
.
GET
,
""
);
Response
res
=
client
.
execute
(
req
,
Request
.
Option
.
create
(
0
,
0
,
header
));
System
.
out
.
printl
n
(
"response code ---------------------------->"
+
res
.
getCode
());
System
.
out
.
printl
n
(
"response content is --------------------》"
+
res
.
getBody
());
log
.
war
n
(
"response code ---------------------------->"
+
res
.
getCode
());
log
.
war
n
(
"response content is --------------------》"
+
res
.
getBody
());
return
res
;
}
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/sendchamp/SendchampSmsClient.java
View file @
37895e79
...
...
@@ -4,7 +4,7 @@ import cn.hutool.core.lang.Assert;
import
cn.iocoder.yudao.framework.common.util.json.JsonUtils
;
import
cn.iocoder.yudao.framework.common.util.json.core.KeyValue
;
import
cn.iocoder.yudao.framework.http.core.Response
;
import
cn.iocoder.yudao.framework.http.
example
.SendchampHttp
;
import
cn.iocoder.yudao.framework.http.
sms
.SendchampHttp
;
import
cn.iocoder.yudao.framework.sms.core.client.SmsCommonResult
;
import
cn.iocoder.yudao.framework.sms.core.client.dto.*
;
import
cn.iocoder.yudao.framework.sms.core.client.impl.AbstractSmsClient
;
...
...
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/sms/core/client/impl/yCloud/YCloudSmsClient.java
View file @
37895e79
...
...
@@ -4,7 +4,7 @@ import cn.hutool.core.lang.Assert;
import
cn.iocoder.yudao.framework.common.util.json.JsonUtils
;
import
cn.iocoder.yudao.framework.common.util.json.core.KeyValue
;
import
cn.iocoder.yudao.framework.http.core.Response
;
import
cn.iocoder.yudao.framework.http.
example
.YCloudWhatsappHttp
;
import
cn.iocoder.yudao.framework.http.
sms
.YCloudWhatsappHttp
;
import
cn.iocoder.yudao.framework.sms.core.client.SmsCommonResult
;
import
cn.iocoder.yudao.framework.sms.core.client.dto.*
;
import
cn.iocoder.yudao.framework.sms.core.client.impl.AbstractSmsClient
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
37895e79
...
...
@@ -1245,8 +1245,8 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
reqDTO
.
setMobile
(
consignorPhone
);
reqDTO
.
setUserId
(
consignorCustomerId
);
reqDTO
.
setNodeValue
(
nodeValue
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_ORDERS_
1
.
getValue
());
reqDTO
.
setTransportId
(
orderDO
.
getTransportId
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_ORDERS_
0
.
getValue
());
reqDTO
.
setTransportId
(
TransportTypeEnum
.
OTHER
.
getValue
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
reqDTO
.
setTemplateParams
(
templateParams
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment