|
@@ -369,6 +369,9 @@ async def make_anchor_video_gSlide(req:models.gSlide_req,token: str = Depends(oa
|
|
|
if re.search('[a-zA-Z]', txt) !=None:
|
|
|
print('語言錯誤')
|
|
|
return {'msg':'輸入字串不能包含英文字!'}
|
|
|
+ if re.search(',', txt) !=None:
|
|
|
+ print('包含非法符號')
|
|
|
+ return {'msg':'輸入不能含有,符號'}
|
|
|
name_hash = str(time.time()).replace('.','')
|
|
|
for imgu in image_urls:
|
|
|
try:
|
|
@@ -404,6 +407,9 @@ async def make_anchor_video_long(req:models.request,token: str = Depends(oauth2_
|
|
|
if re.search('[a-zA-Z]', txt) !=None:
|
|
|
print('語言錯誤')
|
|
|
return {'msg':'輸入字串不能包含英文字!'}
|
|
|
+ if re.search(',', txt) !=None:
|
|
|
+ print('包含非法符號')
|
|
|
+ return {'msg':'輸入不能含有,符號'}
|
|
|
name_hash = str(time.time()).replace('.','')
|
|
|
for imgu in req.image_urls:
|
|
|
try:
|
|
@@ -432,6 +438,9 @@ async def make_anchor_video(req:models.request,token: str = Depends(oauth2_schem
|
|
|
if re.search('[a-zA-Z]', txt) !=None:
|
|
|
print('語言錯誤')
|
|
|
return {'msg':'輸入字串不能包含英文字!'}
|
|
|
+ if re.search(',', txt) !=None:
|
|
|
+ print('包含非法符號')
|
|
|
+ return {'msg':'輸入不能含有,符號'}
|
|
|
name_hash = str(time.time()).replace('.','')
|
|
|
for imgu in req.image_urls:
|
|
|
try:
|