-
+
diff --git a/src/main/ui/static/payment/partner/templates/partners.html b/src/main/ui/static/payment/partner/templates/partners.html
index ea6f15944..595d36503 100644
--- a/src/main/ui/static/payment/partner/templates/partners.html
+++ b/src/main/ui/static/payment/partner/templates/partners.html
@@ -498,11 +498,10 @@
通过({{partner.approve_time}})
资料完善中
+ (自助开通)资料完善中
自助开通试用中({{partner.approve_time}}~{{partner.expiry_time}})
不通过({{partner.approve_time}})
申请打回({{partner.refuse_remark|limitTo:15}})
- 申请打回{{partner.refuse_remark|limitTo:15}}
- Quick Pass(等待同意协议)
等待合规
自助开通(等待合规)
合同制作完成
diff --git a/src/test/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImplTest.java b/src/test/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImplTest.java
new file mode 100644
index 000000000..255fad75f
--- /dev/null
+++ b/src/test/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImplTest.java
@@ -0,0 +1,60 @@
+package au.com.royalpay.payment.manage.application.core.impls;
+
+import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import javax.annotation.Resource;
+
+@SpringBootTest
+@ActiveProfiles({ "dev", "alipay", "wechat", "jd", "bestpay" })
+@RunWith(SpringRunner.class)
+public class SimpleClientApplyServiceImplTest {
+
+ @Resource
+ private SimpleClientApplyService simpleClientApplyService;
+
+ @Test
+ public void verifyRegisterSMSCode() {
+ }
+
+ @Test
+ public void newAccount() {
+ }
+
+ @Test
+ public void partnerSignIn() {
+ simpleClientApplyService.partnerSignIn(null);
+ }
+
+ @Test
+ public void getAndSendSmsCode() {
+ simpleClientApplyService.getAndSendSmsCode("0451120326","61");
+ }
+
+ @Test
+ public void sendVerifyEmail() {
+ simpleClientApplyService.sendVerifyEmail("kira.wang@royalpay.com.au", 9,"kiratest");
+
+ }
+
+ @Test
+ public void checkOrGenerateRegisterProcessKey() {
+ }
+
+ @Test
+ public void deleteRegisterProcessKey() {
+ }
+
+ @Test
+ public void checkOrGenerateVerifyMailKey() {
+ }
+
+ @Test
+ public void deleteVerifyMailKey() {
+ }
+}
\ No newline at end of file
diff --git a/src/test/java/au/com/royalpay/payment/manage/kira/WechatMessageTest.java b/src/test/java/au/com/royalpay/payment/manage/kira/WechatMessageTest.java
new file mode 100644
index 000000000..7a3bc4404
--- /dev/null
+++ b/src/test/java/au/com/royalpay/payment/manage/kira/WechatMessageTest.java
@@ -0,0 +1,42 @@
+package au.com.royalpay.payment.manage.kira;
+
+import au.com.royalpay.payment.core.PaymentApi;
+import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApi;
+import au.com.royalpay.payment.tools.connections.mpsupport.MpWechatApiProvider;
+import au.com.royalpay.payment.tools.connections.mpsupport.beans.TemplateMessage;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.ActiveProfiles;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import javax.annotation.Resource;
+
+@SpringBootTest
+@ActiveProfiles({"dev","alipay","wechat","jd","bestpay"})
+@RunWith(SpringRunner.class)
+public class WechatMessageTest {
+
+ @Resource
+ private PaymentApi paymentApi;
+ @Resource
+ private MpWechatApiProvider mpWechatApiProvider;
+
+ @Test
+ public void asd(){
+ String openId = "o32MzuO4s8c7iFOVxnxejkbhMoEc";
+ MpWechatApi api = mpWechatApiProvider.getApiFromOpenId(openId);
+ String templateId = api.getTemplateId("refund-send");
+
+ TemplateMessage msg = new TemplateMessage(openId, templateId, "");
+ msg.put("first", "退款已提交处理", "#10b24c");
+ msg.put("keyword1", "test1", "#000000");
+ msg.put("keyword2", "test2", "#000000");
+ msg.put("keyword3","test3", "#000000");
+ msg.put("keyword4", "test4", "#000000");
+ msg.put("remark", "已受理您的退款申请,\n将\n\r在近期到账", "#10b24c");
+
+ api.sendTemplateMessage(msg);
+ }
+}
|