File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
use Model \ModelFactory as Factory ;
17
17
use Model \MLhuillierModel as MLhuillier ;
18
+ use Model \GCashModel as GCash ;
18
19
19
20
20
21
// define('BASEPATH', 'DEXInterface');
@@ -45,7 +46,11 @@ public function __construct(array $postParam)
45
46
if ($ postParam ['model ' ] == "MLhuillier " ) {
46
47
$ factory = new Factory (new MLhuillier ($ _POST ));
47
48
$ this ->_return = $ factory ->returnData ();
48
- }
49
+ }
50
+ if ($ postParam ['model ' ] == "GCash " ) {
51
+ $ factory = new Factory (new GCash ($ _POST ));
52
+ $ this ->_return = $ factory ->returnData ();
53
+ }
49
54
}
50
55
51
56
/**
@@ -81,9 +86,8 @@ static function _checkRemoteAddress()
81
86
82
87
$ return = "500 Error! Please try again! " ;
83
88
84
- if ($ _SERVER ['REQUEST_METHOD ' ] == "POST " && DEXInterface::_checkRemoteAddress () == true && $ _POST ['model ' ] != ' ' )
85
- {
86
- $ indexObj = new DEXInterface ($ _POST );
89
+ if ($ _SERVER ['REQUEST_METHOD ' ] == "POST " && DEXInterface::_checkRemoteAddress () == true && $ _POST ['model ' ] != ' ' ) {
90
+ $ indexObj = new DEXInterface ($ _POST );
87
91
$ return = $ indexObj ->getReturn ();
88
92
}
89
93
else {
You can’t perform that action at this time.
0 commit comments