|
|
|
@@ -6,6 +6,7 @@ import java.util.Map; |
|
|
|
import com.iformall.douyin.pay.DouYinPayHelper; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
@Data |
|
|
|
public class DouYinCreatePreOrder { |
|
|
|
@@ -32,12 +33,24 @@ public class DouYinCreatePreOrder { |
|
|
|
map.put("subject", subject); |
|
|
|
map.put("body", body); |
|
|
|
map.put("valid_time", validTime); |
|
|
|
map.put("cp_extra", cpExtra); |
|
|
|
map.put("notify_url", notifyUrl); |
|
|
|
map.put("thirdparty_id", thirdpartyId); |
|
|
|
map.put("disable_msg", disableMsg); |
|
|
|
map.put("msg_page", msgPage); |
|
|
|
map.put("store_uid", storeUid); |
|
|
|
if(StringUtils.isNotBlank(cpExtra)){ |
|
|
|
map.put("cp_extra", cpExtra); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(notifyUrl)){ |
|
|
|
map.put("notify_url", notifyUrl); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(thirdpartyId)){ |
|
|
|
map.put("thirdparty_id", thirdpartyId); |
|
|
|
} |
|
|
|
if(disableMsg != null){ |
|
|
|
map.put("disable_msg", disableMsg); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(msgPage)){ |
|
|
|
map.put("msg_page", msgPage); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(storeUid)){ |
|
|
|
map.put("store_uid", storeUid); |
|
|
|
} |
|
|
|
|
|
|
|
map.put("sign", DouYinPayHelper.createSign(map, sercrect)); |
|
|
|
return map; |
|
|
|
|