Commit 7e137262cf32657d655a66359a768955f3fb1eae
1 parent
cb9312c328
Exists in
master
Perbaikan pemanggilan USSD
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/http-command-server/router-ussd.js
... | ... | @@ -33,12 +33,12 @@ async function handlerIndex(req, res) { |
33 | 33 | return; |
34 | 34 | } |
35 | 35 | |
36 | - const reply = await modem.executeUSSD(req.query.code, req.query.include_cusd2); | |
36 | + const reply = await modem.executeUSSD(req.query.code, Number(req.query.include_cusd2)); | |
37 | 37 | res.json({ |
38 | 38 | status: 'OK', |
39 | 39 | error: false, |
40 | 40 | code: req.query.code, |
41 | - include_cusd2: req.query.include_cusd2, | |
41 | + include_cusd2: Number(req.query.include_cusd2) || 0, | |
42 | 42 | message: reply, |
43 | 43 | }); |
44 | 44 | } |