Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. case 0:
  2. $this->response->code = 0;
  3. $this->response->msg = lang('RESP_PIN_GENERATED');
  4. $this->response->classIconName = 'ui-icon-info';
  5. $this->response->data = [
  6. 'btn1' => [
  7. 'text' => lang('BUTTON_CONTINUE'),
  8. 'link' => base_url('vistaconsolidada'),
  9. 'action' => 'redirect'
  10. ]
  11. ];
  12. break;
  13. case 10:
  14. $this->response->code = 1;
  15. break;
  16. case -308:
  17. $this->response->code = 3;
  18. $this->response->msg = lang('RESP_PIN_NOT_VALID');
  19. break;
  20. case -241:
  21. $this->response->code = 2;
  22. $this->response->msg = lang('RESP_DATA_INVALIDATED');
  23. $this->response->classIconName = 'ui-icon-alert';
  24. $this->response->data = [
  25. 'btn1' => [
  26. 'text' => lang('BUTTON_CONTINUE'),
  27. 'link' => base_url('listaproducto'),
  28. 'action' => 'redirect'
  29. ]
  30. ];
  31. break;
  32. case -345:
  33. $this->response->code = 2;
  34. $this->response->msg = lang('RESP_FAILED_ATTEMPTS');
  35. $this->response->classIconName = 'ui-icon-alert';
  36. $this->response->data = [
  37. 'btn1' => [
  38. 'text' => lang('BUTTON_CONTINUE'),
  39. 'link' => base_url('listaproducto'),
  40. 'action' => 'redirect'
  41. ]
  42. ];
  43. break;
  44. case -401:
  45. $this->response->code = 2;
  46. $this->response->msg = lang('RESP_PIN_NOT_CHANGED');
  47. $this->response->classIconName = 'ui-icon-alert';
  48. $this->response->data = [
  49. 'btn1' => [
  50. 'text' => lang('BUTTON_CONTINUE'),
  51. 'link' => base_url('listaproducto'),
  52. 'action' => 'redirect'
  53. ]
  54. ];
  55. break;
  56. case -286:
  57. $this->response->code = 3;
  58. $this->response->msg = lang('RESP_CODEOTP_INVALID');
  59. break;
  60. case -287:
  61. $this->response->code = 3;
  62. $this->response->msg = lang('RESP_CODEOTP_USED');
  63. break;
  64. case -288:
  65. $this->response->code = 3;
  66. $this->response->msg = lang('RESP_EXPIRED_CODEOTP');
  67. break;
  68. case -301:
  69. $this->response->code = 3;
  70. $this->response->msg = lang('RESP_CODEOTP_INVALID');
  71. break;
  72. case -310:
  73. $this->response->code = 2;
  74. $this->response->msg = lang('RESP_INVALID_EXPIRATION_DATE');
  75. $this->response->classIconName = 'ui-icon-alert';
  76. $this->response->data = [
  77. 'btn1' => [
  78. 'text' => lang('BUTTON_CONTINUE'),
  79. 'link' => base_url('listaproducto'),
  80. 'action' => 'redirect'
  81. ]
  82. ];
  83. break;
  84. case -306:
  85. break;
  86. case -125:
  87. case -304:
  88. case -911:
  89. $this->response->code = 2;
  90. $this->response->msg = ($this->isResponseRc == -125)? lang('RESP_EXPIRED_CARD'): lang('RESP_NOT_PROCCESS');
  91. $this->response->classIconName = 'ui-icon-alert';
  92. $this->response->data = [
  93. 'btn1' => [
  94. 'text' => lang('BUTTON_CONTINUE'),
  95. 'link' => base_url('listaproducto'),
  96. 'action' => 'redirect'
  97. ]
  98. ];
  99. break;
  100. case -35:
  101. case -61:
  102. $this->response->code = 2;
  103. $this->response->msg = ($this->isResponseRc == -35)? lang('RESP_USER_SUSPENDED'): lang('RESP_SESSION_EXPIRED');
  104. $this->response->classIconName = 'ui-icon-alert';
  105. $this->response->data = [
  106. 'btn1' => [
  107. 'text' => lang('BUTTON_CONTINUE'),
  108. 'link' => base_url('listaproducto'),
  109. 'action' => 'redirect'
  110. ]
  111. ];
  112. $this->session->sess_destroy();
  113. break;
  114. default:
  115. $this->response->classIconName = 'ui-icon-alert';
  116. $this->response->data = [
  117. 'btn1' => [
  118. 'text' => lang('BUTTON_CONTINUE'),
  119. 'link' => base_url('listaproducto'),
  120. 'action' => 'redirect'
  121. ]
  122. ];
  123. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement