|
@@ -157,6 +157,11 @@ class TSAIListPhotoGeneratorBaseVM {
|
|
|
postDict = ["prompt":"提高上传图片的清晰度,不要改变任何",
|
|
|
"imageUrl":imageUrl,
|
|
|
"device":getUserInfoJsonString()]
|
|
|
+ case .motherDay:
|
|
|
+ urlType = .imageRewrite
|
|
|
+ postDict = ["prompt":"把照片转化为Q版人物形象,3D黏土风,是真实世界的光影,保留原始人物细节,包括服装和造型。整体放在一张拍立得照片中,有一只手握着拍立得相纸。图中角色从拍立得相纸中,突破边框,延伸进入现实世界的二维空间。背景要温馨,包含母亲节快乐的元素。",
|
|
|
+ "imageUrl":imageUrl,
|
|
|
+ "device":getUserInfoJsonString()]
|
|
|
}
|
|
|
creatRequest = TSNetworkShared.post(urlType: urlType,parameters: postDict) { [weak self] data,error in
|
|
|
guard let self = self else { return }
|
|
@@ -179,7 +184,7 @@ class TSAIListPhotoGeneratorBaseVM {
|
|
|
if let genmojiModel = TSActionInfoModel(JSON: result) {
|
|
|
switch genmojiModel.actionStatus {
|
|
|
case .success:
|
|
|
- if let url = URL(string:genmojiModel.response.resultUrl) {
|
|
|
+ if let _ = URL(string:genmojiModel.response.resultUrl) {
|
|
|
if generatorModel.generatorStyle == .photoLive {
|
|
|
downloadVideo(urlString: genmojiModel.response.resultUrl) { url in
|
|
|
if let url = url {
|
|
@@ -276,6 +281,8 @@ class TSAIListPhotoGeneratorBaseVM {
|
|
|
return 10*1024
|
|
|
case .photoQuality:
|
|
|
return 10*1024
|
|
|
+ case .motherDay:
|
|
|
+ return 10*1024
|
|
|
}
|
|
|
}
|
|
|
|