|
@@ -12,6 +12,7 @@ import com.ydw.yunbuyer.common.base.enums.TimeEnum;
|
12
|
12
|
import org.apache.http.client.ClientProtocolException;
|
13
|
13
|
import org.springframework.beans.factory.annotation.Autowired;
|
14
|
14
|
import org.springframework.context.annotation.Scope;
|
|
15
|
+import org.springframework.util.StringUtils;
|
15
|
16
|
import org.springframework.web.bind.annotation.RequestMapping;
|
16
|
17
|
import org.springframework.web.bind.annotation.RestController;
|
17
|
18
|
import org.tmsps.ne4spring.utils.ChkUtil;
|
|
@@ -344,19 +345,28 @@ public class WxPmController extends ProjBaseAction {
|
344
|
345
|
t_shop shop = shopService.get(shop_id);
|
345
|
346
|
Persion persionDb = persionApi.get(shop.getPersion_id());
|
346
|
347
|
String avataUrl = persionDb.getAvatarUrl();
|
|
348
|
+ //视频
|
|
349
|
+ String videoFileId = list.get(0).get("video_file_id").toString();
|
347
|
350
|
result.put("persion_kid", shop.getPersion_id());
|
348
|
351
|
result.put("avataUrl", avataUrl);
|
|
352
|
+ result.put("video_file_id", videoFileId);
|
349
|
353
|
List<Map<String, Object>> imgsrclist = new ArrayList<Map<String, Object>>();
|
350
|
354
|
// 如果没有当前价记录,当前价为起拍价
|
351
|
355
|
for (Map<String, Object> map : list) {
|
352
|
356
|
// 循环将图片生成数组
|
353
|
357
|
String imgstr = map.get("bid_file_id").toString();
|
|
358
|
+ //视频不为空时,吧视频放入第一个
|
|
359
|
+ if(!"".equals(videoFileId) && videoFileId.length()>0
|
|
360
|
+ && videoFileId !=null){
|
|
361
|
+ imgstr = videoFileId + ","+imgstr;
|
|
362
|
+ }
|
354
|
363
|
String[] str = imgstr.split(",");
|
355
|
364
|
for (int i = 0; i < str.length; i++) {
|
356
|
365
|
Map<String, Object> m = new HashMap<String, Object>();
|
357
|
366
|
m.put("img", str[i]);
|
358
|
367
|
imgsrclist.add(m);
|
359
|
368
|
}
|
|
369
|
+
|
360
|
370
|
}
|
361
|
371
|
// 竞价号牌
|
362
|
372
|
List<Map<String, Object>> list2 = wxPmService.get_bidding_code(kid, persion_id);
|