File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if (process.env.LEANCLOUD_REGION) {
77 AV . _config . region = process . env . LEANCLOUD_REGION ;
88}
99
10+ if ( process . env . LEANCLOUD_APP_ANDX_KEY ) {
11+ AV . _config . androidxKey = process . env . LEANCLOUD_APP_ANDX_KEY ;
12+ }
13+
1014if ( process . env . LC_API_SERVER ) {
1115 AV . setServerURLs ( process . env . LC_API_SERVER ) ;
1216}
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module.exports = function(AV) {
8787 sign = _ref [ 0 ] ;
8888 timestamp = _ref [ 1 ] ;
8989 master = _ref [ 2 ] ;
90- key = master === 'master' ? AV . masterKey : AV . applicationKey ;
90+ key = master === 'master' ? AV . masterKey : ( master === 'ax-sig-1' ? AV . _config . androidxKey : AV . applicationKey ) ;
9191 validSign = signByKey ( timestamp , key ) ;
9292 if ( validSign === sign . toLowerCase ( ) ) {
9393 if ( master === 'master' ) {
You can’t perform that action at this time.
0 commit comments