mirror of
https://github.com/yv1ing/ezMove.git
synced 2025-09-16 14:51:01 +08:00
14 lines
300 B
Python
14 lines
300 B
Python
from picbed.cos import cos_upload_img
|
|
|
|
|
|
class Uploader:
|
|
def __init__(self):
|
|
pass
|
|
|
|
def upload_web_img(self, img_url, pic_bed):
|
|
if pic_bed == 'COS':
|
|
return cos_upload_img(img_url)
|
|
else:
|
|
print('Unsupported image hosting type')
|
|
exit(1)
|