Commit ff4fa9c0 by patpat

增加第三方离线支付失败提示

parent ee03cefa
...@@ -4,6 +4,7 @@ import com.bgycc.smartcanteen.App; ...@@ -4,6 +4,7 @@ import com.bgycc.smartcanteen.App;
import com.bgycc.smartcanteen.Storage.PayStorage; import com.bgycc.smartcanteen.Storage.PayStorage;
import com.bgycc.smartcanteen.event.PayStateEvent; import com.bgycc.smartcanteen.event.PayStateEvent;
import com.bgycc.smartcanteen.event.QRCodeRepeatEvent; import com.bgycc.smartcanteen.event.QRCodeRepeatEvent;
import com.bgycc.smartcanteen.helper.TTSHelper;
import com.bgycc.smartcanteen.helper.TimerHelper; import com.bgycc.smartcanteen.helper.TimerHelper;
import com.bgycc.smartcanteen.server.websocket.MainWebSocket; import com.bgycc.smartcanteen.server.websocket.MainWebSocket;
import com.bgycc.smartcanteen.task.QRCodeTask; import com.bgycc.smartcanteen.task.QRCodeTask;
...@@ -79,7 +80,7 @@ public class PayOfflineAction extends Action { ...@@ -79,7 +80,7 @@ public class PayOfflineAction extends Action {
setState(State.STARTED); setState(State.STARTED);
if (!QRCodeTask.TYPE_BHPAY.equals(payCodeType)) { if (!QRCodeTask.TYPE_BHPAY.equals(payCodeType)) {
setState(State.FAIL); setState(State.FAIL, "第三方支付异常");
return; return;
} }
if (checkRepeat && mPayCodeHistory.contains(payCode)) { if (checkRepeat && mPayCodeHistory.contains(payCode)) {
......
...@@ -67,6 +67,7 @@ object TTSHelper { ...@@ -67,6 +67,7 @@ object TTSHelper {
"非本窗口营业时间" -> "pay-window-rest-time.mp3" "非本窗口营业时间" -> "pay-window-rest-time.mp3"
"非营业时间" -> "pay-canteen-rest-time.mp3" "非营业时间" -> "pay-canteen-rest-time.mp3"
"余额不足" -> "pay-balance-not-enough.mp3" "余额不足" -> "pay-balance-not-enough.mp3"
"第三方支付异常" -> "pay-other-platform-offline.mp3"
else -> "pay-fail.mp3" else -> "pay-fail.mp3"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment