| Conditions | 94 |
| Paths | 1 |
| Total Lines | 283 |
| Code Lines | 187 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 181 | public function withPushTask(array $pushTask) |
||
| 182 | { |
||
| 183 | $this->data['PushTask'] = $pushTask; |
||
| 184 | foreach ($pushTask as $depth1 => $depth1Value) { |
||
| 185 | if(isset($depth1Value['AndroidNotificationBarType'])){ |
||
| 186 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationBarType'] = $depth1Value['AndroidNotificationBarType']; |
||
| 187 | } |
||
| 188 | if(isset($depth1Value['AndroidMessageOppoNotifyLevel'])){ |
||
| 189 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMessageOppoNotifyLevel'] = $depth1Value['AndroidMessageOppoNotifyLevel']; |
||
| 190 | } |
||
| 191 | if(isset($depth1Value['Body'])){ |
||
| 192 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.Body'] = $depth1Value['Body']; |
||
| 193 | } |
||
| 194 | if(isset($depth1Value['DeviceType'])){ |
||
| 195 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.DeviceType'] = $depth1Value['DeviceType']; |
||
| 196 | } |
||
| 197 | if(isset($depth1Value['PushTime'])){ |
||
| 198 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.PushTime'] = $depth1Value['PushTime']; |
||
| 199 | } |
||
| 200 | if(isset($depth1Value['SendSpeed'])){ |
||
| 201 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.SendSpeed'] = $depth1Value['SendSpeed']; |
||
| 202 | } |
||
| 203 | if(isset($depth1Value['AndroidNotificationHuaweiChannel'])){ |
||
| 204 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationHuaweiChannel'] = $depth1Value['AndroidNotificationHuaweiChannel']; |
||
| 205 | } |
||
| 206 | if(isset($depth1Value['AndroidPopupActivity'])){ |
||
| 207 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidPopupActivity'] = $depth1Value['AndroidPopupActivity']; |
||
| 208 | } |
||
| 209 | if(isset($depth1Value['HarmonyNotifyId'])){ |
||
| 210 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyNotifyId'] = $depth1Value['HarmonyNotifyId']; |
||
| 211 | } |
||
| 212 | if(isset($depth1Value['HarmonyRenderStyle'])){ |
||
| 213 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyRenderStyle'] = $depth1Value['HarmonyRenderStyle']; |
||
| 214 | } |
||
| 215 | if(isset($depth1Value['IOSRemindBody'])){ |
||
| 216 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSRemindBody'] = $depth1Value['IOSRemindBody']; |
||
| 217 | } |
||
| 218 | if(isset($depth1Value['Trim'])){ |
||
| 219 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.Trim'] = $depth1Value['Trim']; |
||
| 220 | } |
||
| 221 | if(isset($depth1Value['AndroidMessageVivoCategory'])){ |
||
| 222 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMessageVivoCategory'] = $depth1Value['AndroidMessageVivoCategory']; |
||
| 223 | } |
||
| 224 | if(isset($depth1Value['AndroidNotifyType'])){ |
||
| 225 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotifyType'] = $depth1Value['AndroidNotifyType']; |
||
| 226 | } |
||
| 227 | if(isset($depth1Value['AndroidPopupTitle'])){ |
||
| 228 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidPopupTitle'] = $depth1Value['AndroidPopupTitle']; |
||
| 229 | } |
||
| 230 | if(isset($depth1Value['AndroidMessageHuaweiCategory'])){ |
||
| 231 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMessageHuaweiCategory'] = $depth1Value['AndroidMessageHuaweiCategory']; |
||
| 232 | } |
||
| 233 | if(isset($depth1Value['IOSMusic'])){ |
||
| 234 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSMusic'] = $depth1Value['IOSMusic']; |
||
| 235 | } |
||
| 236 | if(isset($depth1Value['IOSApnsEnv'])){ |
||
| 237 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSApnsEnv'] = $depth1Value['IOSApnsEnv']; |
||
| 238 | } |
||
| 239 | if(isset($depth1Value['IOSMutableContent'])){ |
||
| 240 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSMutableContent'] = $depth1Value['IOSMutableContent']; |
||
| 241 | } |
||
| 242 | if(isset($depth1Value['AndroidNotificationBarPriority'])){ |
||
| 243 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationBarPriority'] = $depth1Value['AndroidNotificationBarPriority']; |
||
| 244 | } |
||
| 245 | if(isset($depth1Value['ExpireTime'])){ |
||
| 246 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.ExpireTime'] = $depth1Value['ExpireTime']; |
||
| 247 | } |
||
| 248 | if(isset($depth1Value['AndroidImageUrl'])){ |
||
| 249 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidImageUrl'] = $depth1Value['AndroidImageUrl']; |
||
| 250 | } |
||
| 251 | if(isset($depth1Value['AndroidNotificationThreadId'])){ |
||
| 252 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationThreadId'] = $depth1Value['AndroidNotificationThreadId']; |
||
| 253 | } |
||
| 254 | if(isset($depth1Value['AndroidHonorTargetUserType'])){ |
||
| 255 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidHonorTargetUserType'] = $depth1Value['AndroidHonorTargetUserType']; |
||
| 256 | } |
||
| 257 | if(isset($depth1Value['HarmonyRemindBody'])){ |
||
| 258 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyRemindBody'] = $depth1Value['HarmonyRemindBody']; |
||
| 259 | } |
||
| 260 | if(isset($depth1Value['AndroidNotificationVivoChannel'])){ |
||
| 261 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationVivoChannel'] = $depth1Value['AndroidNotificationVivoChannel']; |
||
| 262 | } |
||
| 263 | if(isset($depth1Value['AndroidVivoReceiptId'])){ |
||
| 264 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidVivoReceiptId'] = $depth1Value['AndroidVivoReceiptId']; |
||
| 265 | } |
||
| 266 | if(isset($depth1Value['IOSNotificationCategory'])){ |
||
| 267 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSNotificationCategory'] = $depth1Value['IOSNotificationCategory']; |
||
| 268 | } |
||
| 269 | if(isset($depth1Value['AndroidNotificationXiaomiChannel'])){ |
||
| 270 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationXiaomiChannel'] = $depth1Value['AndroidNotificationXiaomiChannel']; |
||
| 271 | } |
||
| 272 | if(isset($depth1Value['HarmonyAction'])){ |
||
| 273 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyAction'] = $depth1Value['HarmonyAction']; |
||
| 274 | } |
||
| 275 | if(isset($depth1Value['StoreOffline'])){ |
||
| 276 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.StoreOffline'] = $depth1Value['StoreOffline']; |
||
| 277 | } |
||
| 278 | if(isset($depth1Value['IOSRelevanceScore'])){ |
||
| 279 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSRelevanceScore'] = $depth1Value['IOSRelevanceScore']; |
||
| 280 | } |
||
| 281 | if(isset($depth1Value['AndroidVivoPushMode'])){ |
||
| 282 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidVivoPushMode'] = $depth1Value['AndroidVivoPushMode']; |
||
| 283 | } |
||
| 284 | if(isset($depth1Value['AndroidInboxBody'])){ |
||
| 285 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidInboxBody'] = $depth1Value['AndroidInboxBody']; |
||
| 286 | } |
||
| 287 | if(isset($depth1Value['JobKey'])){ |
||
| 288 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.JobKey'] = $depth1Value['JobKey']; |
||
| 289 | } |
||
| 290 | if(isset($depth1Value['HarmonyReceiptId'])){ |
||
| 291 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyReceiptId'] = $depth1Value['HarmonyReceiptId']; |
||
| 292 | } |
||
| 293 | if(isset($depth1Value['AndroidOpenUrl'])){ |
||
| 294 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidOpenUrl'] = $depth1Value['AndroidOpenUrl']; |
||
| 295 | } |
||
| 296 | if(isset($depth1Value['AndroidBadgeSetNum'])){ |
||
| 297 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBadgeSetNum'] = $depth1Value['AndroidBadgeSetNum']; |
||
| 298 | } |
||
| 299 | if(isset($depth1Value['AndroidXiaoMiNotifyBody'])){ |
||
| 300 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidXiaoMiNotifyBody'] = $depth1Value['AndroidXiaoMiNotifyBody']; |
||
| 301 | } |
||
| 302 | if(isset($depth1Value['IOSSubtitle'])){ |
||
| 303 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSSubtitle'] = $depth1Value['IOSSubtitle']; |
||
| 304 | } |
||
| 305 | if(isset($depth1Value['AndroidXiaomiBigPictureUrl'])){ |
||
| 306 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidXiaomiBigPictureUrl'] = $depth1Value['AndroidXiaomiBigPictureUrl']; |
||
| 307 | } |
||
| 308 | if(isset($depth1Value['HarmonyCategory'])){ |
||
| 309 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyCategory'] = $depth1Value['HarmonyCategory']; |
||
| 310 | } |
||
| 311 | if(isset($depth1Value['IOSRemind'])){ |
||
| 312 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSRemind'] = $depth1Value['IOSRemind']; |
||
| 313 | } |
||
| 314 | if(isset($depth1Value['IOSNotificationThreadId'])){ |
||
| 315 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSNotificationThreadId'] = $depth1Value['IOSNotificationThreadId']; |
||
| 316 | } |
||
| 317 | if(isset($depth1Value['AndroidHuaweiTargetUserType'])){ |
||
| 318 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidHuaweiTargetUserType'] = $depth1Value['AndroidHuaweiTargetUserType']; |
||
| 319 | } |
||
| 320 | if(isset($depth1Value['HarmonyRemind'])){ |
||
| 321 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyRemind'] = $depth1Value['HarmonyRemind']; |
||
| 322 | } |
||
| 323 | if(isset($depth1Value['AndroidMusic'])){ |
||
| 324 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMusic'] = $depth1Value['AndroidMusic']; |
||
| 325 | } |
||
| 326 | if(isset($depth1Value['HarmonyExtensionPush'])){ |
||
| 327 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyExtensionPush'] = $depth1Value['HarmonyExtensionPush']; |
||
| 328 | } |
||
| 329 | if(isset($depth1Value['IOSNotificationCollapseId'])){ |
||
| 330 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSNotificationCollapseId'] = $depth1Value['IOSNotificationCollapseId']; |
||
| 331 | } |
||
| 332 | if(isset($depth1Value['AndroidMessageHuaweiUrgency'])){ |
||
| 333 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMessageHuaweiUrgency'] = $depth1Value['AndroidMessageHuaweiUrgency']; |
||
| 334 | } |
||
| 335 | if(isset($depth1Value['PushType'])){ |
||
| 336 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.PushType'] = $depth1Value['PushType']; |
||
| 337 | } |
||
| 338 | if(isset($depth1Value['IOSInterruptionLevel'])){ |
||
| 339 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSInterruptionLevel'] = $depth1Value['IOSInterruptionLevel']; |
||
| 340 | } |
||
| 341 | if(isset($depth1Value['HarmonyExtensionExtraData'])){ |
||
| 342 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyExtensionExtraData'] = $depth1Value['HarmonyExtensionExtraData']; |
||
| 343 | } |
||
| 344 | if(isset($depth1Value['AndroidExtParameters'])){ |
||
| 345 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidExtParameters'] = $depth1Value['AndroidExtParameters']; |
||
| 346 | } |
||
| 347 | if(isset($depth1Value['HarmonyImageUrl'])){ |
||
| 348 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyImageUrl'] = $depth1Value['HarmonyImageUrl']; |
||
| 349 | } |
||
| 350 | if(isset($depth1Value['IOSBadge'])){ |
||
| 351 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSBadge'] = $depth1Value['IOSBadge']; |
||
| 352 | } |
||
| 353 | if(isset($depth1Value['AndroidBigBody'])){ |
||
| 354 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBigBody'] = $depth1Value['AndroidBigBody']; |
||
| 355 | } |
||
| 356 | if(isset($depth1Value['IOSBadgeAutoIncrement'])){ |
||
| 357 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSBadgeAutoIncrement'] = $depth1Value['IOSBadgeAutoIncrement']; |
||
| 358 | } |
||
| 359 | if(isset($depth1Value['AndroidOpenType'])){ |
||
| 360 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidOpenType'] = $depth1Value['AndroidOpenType']; |
||
| 361 | } |
||
| 362 | if(isset($depth1Value['HarmonyRemindTitle'])){ |
||
| 363 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyRemindTitle'] = $depth1Value['HarmonyRemindTitle']; |
||
| 364 | } |
||
| 365 | if(isset($depth1Value['Title'])){ |
||
| 366 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.Title'] = $depth1Value['Title']; |
||
| 367 | } |
||
| 368 | if(isset($depth1Value['AndroidBadgeClass'])){ |
||
| 369 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBadgeClass'] = $depth1Value['AndroidBadgeClass']; |
||
| 370 | } |
||
| 371 | if(isset($depth1Value['HarmonyBadgeAddNum'])){ |
||
| 372 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyBadgeAddNum'] = $depth1Value['HarmonyBadgeAddNum']; |
||
| 373 | } |
||
| 374 | if(isset($depth1Value['HarmonyTestMessage'])){ |
||
| 375 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyTestMessage'] = $depth1Value['HarmonyTestMessage']; |
||
| 376 | } |
||
| 377 | if(isset($depth1Value['AndroidRenderStyle'])){ |
||
| 378 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidRenderStyle'] = $depth1Value['AndroidRenderStyle']; |
||
| 379 | } |
||
| 380 | if(isset($depth1Value['IOSExtParameters'])){ |
||
| 381 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSExtParameters'] = $depth1Value['IOSExtParameters']; |
||
| 382 | } |
||
| 383 | if(isset($depth1Value['AndroidBadgeAddNum'])){ |
||
| 384 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBadgeAddNum'] = $depth1Value['AndroidBadgeAddNum']; |
||
| 385 | } |
||
| 386 | if(isset($depth1Value['AndroidHuaweiReceiptId'])){ |
||
| 387 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidHuaweiReceiptId'] = $depth1Value['AndroidHuaweiReceiptId']; |
||
| 388 | } |
||
| 389 | if(isset($depth1Value['AndroidNotificationHonorChannel'])){ |
||
| 390 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationHonorChannel'] = $depth1Value['AndroidNotificationHonorChannel']; |
||
| 391 | } |
||
| 392 | if(isset($depth1Value['AndroidXiaomiImageUrl'])){ |
||
| 393 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidXiaomiImageUrl'] = $depth1Value['AndroidXiaomiImageUrl']; |
||
| 394 | } |
||
| 395 | if(isset($depth1Value['AndroidTargetUserType'])){ |
||
| 396 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidTargetUserType'] = $depth1Value['AndroidTargetUserType']; |
||
| 397 | } |
||
| 398 | if(isset($depth1Value['HarmonyUri'])){ |
||
| 399 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyUri'] = $depth1Value['HarmonyUri']; |
||
| 400 | } |
||
| 401 | if(isset($depth1Value['AndroidPopupBody'])){ |
||
| 402 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidPopupBody'] = $depth1Value['AndroidPopupBody']; |
||
| 403 | } |
||
| 404 | if(isset($depth1Value['HarmonyExtParameters'])){ |
||
| 405 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyExtParameters'] = $depth1Value['HarmonyExtParameters']; |
||
| 406 | } |
||
| 407 | if(isset($depth1Value['AndroidBigPictureUrl'])){ |
||
| 408 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBigPictureUrl'] = $depth1Value['AndroidBigPictureUrl']; |
||
| 409 | } |
||
| 410 | if(isset($depth1Value['IOSSilentNotification'])){ |
||
| 411 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.iOSSilentNotification'] = $depth1Value['IOSSilentNotification']; |
||
| 412 | } |
||
| 413 | if(isset($depth1Value['AndroidNotificationGroup'])){ |
||
| 414 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationGroup'] = $depth1Value['AndroidNotificationGroup']; |
||
| 415 | } |
||
| 416 | if(isset($depth1Value['SendChannels'])){ |
||
| 417 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.SendChannels'] = $depth1Value['SendChannels']; |
||
| 418 | } |
||
| 419 | if(isset($depth1Value['HarmonyActionType'])){ |
||
| 420 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyActionType'] = $depth1Value['HarmonyActionType']; |
||
| 421 | } |
||
| 422 | if(isset($depth1Value['Target'])){ |
||
| 423 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.Target'] = $depth1Value['Target']; |
||
| 424 | } |
||
| 425 | if(isset($depth1Value['HarmonyNotificationSlotType'])){ |
||
| 426 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyNotificationSlotType'] = $depth1Value['HarmonyNotificationSlotType']; |
||
| 427 | } |
||
| 428 | if(isset($depth1Value['AndroidBigTitle'])){ |
||
| 429 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidBigTitle'] = $depth1Value['AndroidBigTitle']; |
||
| 430 | } |
||
| 431 | if(isset($depth1Value['AndroidNotificationChannel'])){ |
||
| 432 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationChannel'] = $depth1Value['AndroidNotificationChannel']; |
||
| 433 | } |
||
| 434 | if(isset($depth1Value['AndroidRemind'])){ |
||
| 435 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidRemind'] = $depth1Value['AndroidRemind']; |
||
| 436 | } |
||
| 437 | if(isset($depth1Value['HarmonyInboxContent'])){ |
||
| 438 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyInboxContent'] = $depth1Value['HarmonyInboxContent']; |
||
| 439 | } |
||
| 440 | if(isset($depth1Value['AndroidActivity'])){ |
||
| 441 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidActivity'] = $depth1Value['AndroidActivity']; |
||
| 442 | } |
||
| 443 | if(isset($depth1Value['AndroidMessageOppoCategory'])){ |
||
| 444 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidMessageOppoCategory'] = $depth1Value['AndroidMessageOppoCategory']; |
||
| 445 | } |
||
| 446 | if(isset($depth1Value['AndroidNotificationNotifyId'])){ |
||
| 447 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidNotificationNotifyId'] = $depth1Value['AndroidNotificationNotifyId']; |
||
| 448 | } |
||
| 449 | if(isset($depth1Value['TargetValue'])){ |
||
| 450 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.TargetValue'] = $depth1Value['TargetValue']; |
||
| 451 | } |
||
| 452 | if(isset($depth1Value['HarmonyBadgeSetNum'])){ |
||
| 453 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.HarmonyBadgeSetNum'] = $depth1Value['HarmonyBadgeSetNum']; |
||
| 454 | } |
||
| 455 | if(isset($depth1Value['AndroidXiaoMiNotifyTitle'])){ |
||
| 456 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidXiaoMiNotifyTitle'] = $depth1Value['AndroidXiaoMiNotifyTitle']; |
||
| 457 | } |
||
| 458 | if(isset($depth1Value['AndroidXiaoMiActivity'])){ |
||
| 459 | $this->options['form_params']['PushTask.' . ($depth1 + 1) . '.AndroidXiaoMiActivity'] = $depth1Value['AndroidXiaoMiActivity']; |
||
| 460 | } |
||
| 461 | } |
||
| 462 | |||
| 463 | return $this; |
||
| 464 | } |
||
| 1112 |