| 1949 | | $res = -2; |
|---|
| 1950 | | break; |
|---|
| | 1952 | |
|---|
| | 1953 | if ($this->agiconfig['jump_voucher_if_min_credit']==1 && $prompt == "prepaid-zero-balance"){ |
|---|
| | 1954 | |
|---|
| | 1955 | $this -> debug( WRITELOG, $agi, __FILE__, __LINE__, "[NOTENOUGHCREDIT - refill_card_withvoucher] "); |
|---|
| | 1956 | $vou_res = $this -> refill_card_with_voucher($agi,2); |
|---|
| | 1957 | if ($vou_res==1){ |
|---|
| | 1958 | return 0; |
|---|
| | 1959 | }else { |
|---|
| | 1960 | $this -> debug( WRITELOG, $agi, __FILE__, __LINE__, "[NOTENOUGHCREDIT - refill_card_withvoucher fail] "); |
|---|
| | 1961 | } |
|---|
| | 1962 | } |
|---|
| | 1963 | if ($prompt == "prepaid-zero-balance" && $this->agiconfig['notenoughcredit_cardnumber']==1) { |
|---|
| | 1964 | $this->accountcode=''; |
|---|
| | 1965 | $this->agiconfig['cid_auto_assign_card_to_cid']=0; |
|---|
| | 1966 | if ($this->agiconfig['notenoughcredit_assign_newcardnumber_cid']==1) $this -> ask_other_cardnumber=1; |
|---|
| | 1967 | }else{ |
|---|
| | 1968 | return -2; |
|---|
| | 1969 | } |
|---|