|
|
@@ -19,6 +19,8 @@ import com.mokamrp.privates.entity.PostBasePageHandle;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
@@ -105,10 +107,10 @@ public class FosterwxStationServiceImpl extends ServiceImpl<FosterwxStationMappe
|
|
|
* @param stationId
|
|
|
* @return
|
|
|
*/
|
|
|
- public String makeBoxShareUrl(String boxShareUrl,String stationId){
|
|
|
+ public String makeBoxShareUrl(String boxShareUrl,String stationId,String stationName){
|
|
|
String key = StringUtils.getRandomString(10)+stationId+StringUtils.getRandomString(5);
|
|
|
byte[] keyB = key.getBytes();
|
|
|
- String newBoxShareUrl = boxShareUrl + "?station="+ Base64.encode(keyB);
|
|
|
+ String newBoxShareUrl = boxShareUrl + "?station="+ Base64.encode(keyB)+"&stationName="+Base64.encode(stationName.getBytes(StandardCharsets.UTF_8));
|
|
|
return newBoxShareUrl;
|
|
|
}
|
|
|
}
|