admin
2021-05-14 1b4b3fed2569ac21ad6feb0a3a2c051175e7c36e
app/src/main/java/com/tejia/lijin/app/ui/recommend/GoodsDetailBrowerActivity.java
@@ -40,6 +40,7 @@
import com.alibaba.baichuan.trade.biz.core.taoke.AlibcTaokeParams;
import com.alibaba.baichuan.trade.biz.login.AlibcLogin;
import com.alibaba.baichuan.trade.biz.login.AlibcLoginCallback;
import com.tejia.lijin.app.ShoppingApplication;
import com.tejia.lijin.app.util.JumpActivityUtil;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
@@ -511,9 +512,7 @@
    private String id;
    private void getGoodsdetail() {
        SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE);
        String uid = sp.getString("uid", "");
        ShoppingApi.getGoodsInfoTB(this, id, uid, isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() {
        ShoppingApi.getGoodsInfoTB(this, id, UserUtil.getUid(ShoppingApplication.application), isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                Log.e("mResult", "getGoodsdetail()---onSuccessPerfect()---");
@@ -670,8 +669,7 @@
    private void refresh(final ImageView iv) {
        SharedPreferences sp = getSharedPreferences("user", MODE_PRIVATE);
        String uid = sp.getString("uid", "");
        ShoppingApi.getGoodsInfoTB(this, id, uid, isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() {
        ShoppingApi.getGoodsInfoTB(this, id, UserUtil.getUid(ShoppingApplication.application), isTrolley ? "购物车" : isWeex ? "weex" : "其它", new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                if (jsonObject.optString("code").equalsIgnoreCase("0")) {
@@ -878,8 +876,7 @@
    private void getTaobaoShareLink() {
        final ShapeLoadingDialog pb = new ShapeLoadingDialog.Builder(this).build();
        pb.show();
        String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0");
        ShoppingApi.createShareLink(this, uid, mInfo.getGoods().getGoodsId(), mInfo.getGoods().getGoodsType() + "", "", null,null, new BasicTextHttpResponseHandler() {
        ShoppingApi.createShareLink(this, UserUtil.getUid(ShoppingApplication.application), mInfo.getGoods().getGoodsId(), mInfo.getGoods().getGoodsType() + "", "", null,null, new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                if (jsonObject.optString("code").equalsIgnoreCase("0")) {
@@ -901,8 +898,7 @@
    }
    private void collection() {
        String uid = getSharedPreferences("user", MODE_PRIVATE).getString("uid", "0");
        ShoppingApi.collectionGoods(GoodsDetailBrowerActivity.this, id, uid, isCollection ? "2" : "1", mInfo.getGoods().getGoodsType() + "", new BasicTextHttpResponseHandler() {
        ShoppingApi.collectionGoods(GoodsDetailBrowerActivity.this, id, UserUtil.getUid(ShoppingApplication.application), isCollection ? "2" : "1", mInfo.getGoods().getGoodsType() + "", new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {
                if (jsonObject.optString("code").equalsIgnoreCase("0")) {