tida
Version:
tida
2 lines (1 loc) • 2.06 kB
JavaScript
module.exports=webpackJsonp([3],{34:function(t,r,n){"use strict";var e=n(35),o=n(5);t.exports=function(t){var r=["client_id","redirect_uri","bizid"];o.requiredParam(t,r);var n=e(),i=t.sandbox?"https://oauth.tbsandbox.com/authorize":"https://oauth.m.taobao.com/authorize",u=t.response_type||"code",c=t.client_id,a=t.view||"web",s=o.addParama(t.redirect_uri,"sessionUuid",n),d=i+"?response_type="+u+"&client_id="+c+"&bizid="+t.bizid+"&redirect_uri="+encodeURIComponent(s)+"&view="+a;return t.forceLogin&&(d="https://pages.tmall.com/wow/lafite/act/login-redirect?redirect_uri="+encodeURIComponent(d)),{url:"//gqrcode.alicdn.com/img?type=hv&w=300&h=300&el=m&text="+encodeURIComponent(d),sessionUuid:n}}},35:function(t,r,n){"use strict";function e(t,r,n){var e=r&&n||0;"string"==typeof t&&(r="binary"==t?new Array(16):null,t=null),t=t||{};var u=t.random||(t.rng||o)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,r)for(var c=0;c<16;++c)r[e+c]=u[c];return r||i(u)}var o=n(36),i=n(38);t.exports=e},36:function(t,r,n){"use strict";(function(r){var n,e=r.crypto||r.msCrypto;if(e&&e.getRandomValues){var o=new Uint8Array(16);n=function(){return e.getRandomValues(o),o}}if(!n){var i=new Array(16);n=function(){for(var t,r=0;r<16;r++)0==(3&r)&&(t=4294967296*Math.random()),i[r]=t>>>((3&r)<<3)&255;return i}}t.exports=n}).call(r,n(37))},37:function(t,r,n){"use strict";var e,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(e=window)}t.exports=e},38:function(t,r,n){"use strict";function e(t,r){var n=r||0,e=o;return e[t[n++]]+e[t[n++]]+e[t[n++]]+e[t[n++]]+"-"+e[t[n++]]+e[t[n++]]+"-"+e[t[n++]]+e[t[n++]]+"-"+e[t[n++]]+e[t[n++]]+"-"+e[t[n++]]+e[t[n++]]+e[t[n++]]+e[t[n++]]+e[t[n++]]+e[t[n++]]}for(var o=[],i=0;i<256;++i)o[i]=(i+256).toString(16).substr(1);t.exports=e}},[34]);