Pārlūkot izejas kodu

修改极光推送插件registerForPushWithJpush不传别名参数时会误传一个"null"别名到客户端的问题

zhanglong7 6 gadi atpakaļ
vecāks
revīzija
a55bf219f8

+ 5 - 1
show-server/src/main/webapp/ipu/frame/mobile/expand-mobile.js

@ -277,7 +277,11 @@ define(["require","jcl"],function(require,Wade) {
277 277
			},setCallbackForPushWithYunba:function(callback){
278 278
				execute("setCallbackForPushWithYunba", [callback]);
279 279
			},registerForPushWithJpush:function(account, err){
280
				execute("registerForPushWithJpush", [account], err);
280
				if(account==undefined){
281
					execute("registerForPushWithJpush", [], err);
282
				} else {
283
					execute("registerForPushWithJpush", [account], err);
284
				}
281 285
			},unregisterForPushWithJpush:function(){
282 286
				execute("unregisterForPushWithJpush", []);
283 287
			},setJpushAlias:function(alias, err){