|
|
@@ -31,7 +31,9 @@ import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.domain.ClassGradeUser;
|
|
|
+import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
|
+import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
import com.zhongzheng.modules.user.bo.UserWxFollowAddBo;
|
|
|
import com.zhongzheng.modules.user.domain.User;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
@@ -164,6 +166,9 @@ public class WxLoginService implements IWxLoginService {
|
|
|
@Autowired
|
|
|
private IDistributionSellerService iDistributionSellerService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ISysTenantService iSysTenantService;
|
|
|
+
|
|
|
private final String KEY_PREFIX = "GOODS_SHARE";
|
|
|
|
|
|
public void initData(){
|
|
|
@@ -1216,8 +1221,18 @@ public class WxLoginService implements IWxLoginService {
|
|
|
}
|
|
|
}
|
|
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
+ if(jsonObject.containsKey("url_link")){
|
|
|
+ return jsonObject.get("url_link").toString();
|
|
|
+ }else{
|
|
|
+ String tenant = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
+ SysTenant sysTenant = iSysTenantService.getOne(new LambdaQueryWrapper<SysTenant>()
|
|
|
+ .eq(SysTenant::getTenantId,tenant).last("limit 1"));
|
|
|
+ if(Validator.isNotEmpty(sysTenant)){
|
|
|
+ return "https://"+sysTenant.getHostH5();
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
|
|
|
- return jsonObject.get("url_link").toString();
|
|
|
}
|
|
|
|
|
|
@Override
|