|
@@ -3,8 +3,8 @@ package test;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.dgtly.ApiApplication;
|
|
|
+import com.dgtly.wxportal.service.ESignService;
|
|
|
import com.dgtly.wxportal.utils.ESign.ESignHttpUtil;
|
|
|
-import com.dgtly.wxportal.utils.ESign.ESignToken;
|
|
|
import com.dgtly.wxportal.utils.ESign.ESignUrl;
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
@@ -19,11 +19,34 @@ public class MyTest {
|
|
|
|
|
|
@Autowired
|
|
|
private ESignHttpUtil eSignHttpUtil;
|
|
|
+ @Autowired
|
|
|
+ private ESignService eSignService;
|
|
|
@Test
|
|
|
public void test(){
|
|
|
- JSONObject json = new JSONObject();
|
|
|
- String s= eSignHttpUtil.doPost(ESignUrl.GetPersonalAddress,json);
|
|
|
- System.out.println(s);
|
|
|
+ //创建文件
|
|
|
+ String result = eSignService.upload("D:/SZSM/工作交接表.docx");
|
|
|
+ System.out.println(result);
|
|
|
+
|
|
|
+ //注册用户
|
|
|
+ /*JSONObject json = new JSONObject();
|
|
|
+ json.put("thirdPartyUserId","18317541568");
|
|
|
+ json.put("name","张鼎");
|
|
|
+ json.put("idType","CRED_PSN_CH_IDCARD");
|
|
|
+ json.put("idNumber","410381200012281515");
|
|
|
+ json.put("mobile","18317541566");
|
|
|
+ json.put("email","18317541566@163.com");
|
|
|
+ String s= eSignHttpUtil.doPost(ESignUrl.CreatePersonalAccount,json);
|
|
|
+ */
|
|
|
+
|
|
|
+ /*json.put("thirdPartyUserId","20190826110230222");
|
|
|
+ json.put("creator","40c83af8e2554732957ae14f357d37cb");
|
|
|
+ json.put("name","杭州天谷信息科技有限公司");
|
|
|
+ json.put("idType","CRED_PSN_CH_IDCARD");
|
|
|
+ json.put("idNumber","410381200012281514");
|
|
|
+ json.put("orgLegalIdNumber","410381200012281514");
|
|
|
+ json.put("orgLegalName","张鼎");*/
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|