mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 02:39:17 +00:00
Fix COS upload path
This commit is contained in:
1 parent
78bc4b5f7e
commit
49fb976a2c
1 file changed
+4
-3
+4
-3
@@ -35,11 +35,12 @@ import com.qcloud.cos.auth.COSCredentials
|
||||
import com.qcloud.cos.region.Region
|
||||
import com.qcloud.cos.model.PutObjectRequest
|
||||
|
||||
static String getLibKey(String filename) {
|
||||
static String getLibKey(String filename){
|
||||
filename=filename.substring(0,filename.lastIndexOf('.'))
|
||||
return String.format(
|
||||
"libraries/customskinloader/%s/%s/%s",
|
||||
filename.substring(0, filename.lastIndexOf('.')),
|
||||
filename.substring(filename.lastIndexOf('.') + 1),
|
||||
filename.substring(0, filename.indexOf('-')),
|
||||
filename.substring(filename.indexOf('-') + 1),
|
||||
filename
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user