Commit 156b430db93237b4c8111968fafdb9d5f74a0948

Authored by 袁思汶
1 parent 102e452b

外分链接类型

OutSide_Share/src/main/java/com/cnlive/outside_share/activity/ShareMomentActivity.java
... ... @@ -257,8 +257,10 @@ public class ShareMomentActivity extends AppCompatActivity {
257 257 } else {
258 258 end = linkcontext.length();
259 259 }
260   - String file = bundle.getString("file");
261   - FileUtil.copyFile(file, getPath("/strike/cache/") + "share.jpg");
  260 + if (bundle!=null && bundle.getString("file")!=null) {
  261 + String file = bundle.getString("file");
  262 + FileUtil.copyFile(file, getPath("/strike/cache/") + "share.jpg");
  263 + }
262 264 ShareReleaseInfoUtil.ShareConfig shareConfig = ShareReleaseInfoUtil.ShareConfig.newInstance();
263 265 shareConfig.setType(ShareReleaseInfoUtil.TYPE_HTML);
264 266 String jsouplink = linkcontext.substring(begin, end);
... ...
config.gradle
... ... @@ -21,7 +21,7 @@ ext {
21 21 //编译方式
22 22 debug : false,
23 23 //版本号
24   - version: "1.0.1.1",
  24 + version: "1.0.1.2",
25 25 //Lib库前缀
26 26 packeg : "com.cnlive.outside_share",
27 27 //Lib库名称
... ...