Giter VIP home page Giter VIP logo

Comments (6)

liuchuancong avatar liuchuancong commented on September 25, 2024

虽然不影响使用,但是我改了之后但是还是这个问题。

from aliossflutter.

jlcool avatar jlcool commented on September 25, 2024

我也不知道如何修改

from aliossflutter.

liuchuancong avatar liuchuancong commented on September 25, 2024

好吧

from aliossflutter.

liuchuancong avatar liuchuancong commented on September 25, 2024
   private void secretInit() {
        new AsyncTask<MethodCall,Void,Void>(){
            @Override
            protected Void doInBackground(MethodCall... methodCalls) {
                MethodCall _call = methodCalls[0];
                final String accessKeyId = _call.argument("accessKeyId");
                final String accessKeySecret = _call.argument("accessKeySecret");
                final String _id = _call.argument("id");
                final String securityToken = _call.argument("securityToken");
                final OSSCredentialProvider credentialProvider = new OSSStsTokenCredentialProvider(accessKeyId, accessKeySecret, securityToken);
                oss = new OSSClient(registrar.context(), (String) _call.argument("endpoint"), credentialProvider);
                return null;
            }
        }.execute(_call);

        final String _id = _call.argument("id");
        final Map<String, String> m1 = new HashMap();
        m1.put("result", "success");
        m1.put("id", _id);
        activity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                channel.invokeMethod("onInit", m1);
            }
        });
    }

你值得拥有!

from aliossflutter.

jlcool avatar jlcool commented on September 25, 2024

你可以试试pull requests 把你代码提交下

from aliossflutter.

liuchuancong avatar liuchuancong commented on September 25, 2024

自签名部分我修改源码了不适合,你可以根据此方法修改oninit() 顺便一提

alioss.responseFromUpload.listen((UploadResponse data) {
        if (data.success) {
          callback('http://$endPoint/$bucketName/${data.key}');
        } else {
          callback('0');
        }
      });

这个方法多次调用会将 之前的路径也返回 多次调用有时候会瞬间 返回好几条路径

from aliossflutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.