| | |
| | | out.print(JsonUtil.loadFalseResult(1, "暂不开放申请"));
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | UserExtraTaoBaoInfo user = userExtraTaoBaoInfoService.getByUid(uid);
|
| | | if ("share".equalsIgnoreCase(source)) {
|
| | | if (user != null && !StringUtil.isNullOrEmpty(user.getRelationId()) && user.getRelationValid()) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | boolean canParse = "0".equalsIgnoreCase(configService.get("auto_find_taobao_order")) ? false : true;
|
| | |
|
| | | String link = TaoBaoUtil.getTaoBaoUnionAuthUrl(TaoBaoConstant.TAOBAO_AUTH_APPKEY,
|
| | | "http://api.flqapp.com/fanli/client/v1/auth/callback/tb", uid, source);
|
| | |
|
| | | String orderJS=configService.get("taobao_order_parse_js"); |
| | | String orderJS = configService.get("taobao_order_parse_js");
|
| | | if (!canParse)
|
| | | orderJS = "-";
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("authLink", link);
|
| | |
|
| | | try {
|
| | | data.put("orderJS", DESUtil.encode(orderJS, StringUtil.getBase64String("YeShiFANLI889*+"),
|
| | | StringUtil.getBase64String("*M#34f?,")));
|
| | |
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | data.put("orderUrl", "https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm");
|
| | | if (!canParse)
|
| | | data.put("orderUrl", "http://");
|
| | | else
|
| | | data.put("orderUrl", "https://buyertrade.taobao.com/trade/itemlist/list_bought_items.htm");
|
| | | if (first)
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | else
|
| | | out.print(JsonUtil.loadTrue(0, data, "淘宝授权未成功,请稍后再试"));
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|