Added test

This commit is contained in:
CHIEFSOFT\ameye
2025-07-05 12:38:24 -04:00
parent 4aadf2a084
commit 53d674f36b
4 changed files with 14 additions and 4 deletions
@@ -526,6 +526,7 @@ enum { PARTNER_STRIPE };
#define WRENCHBOARD_BALANCE_TOPUP_PURCHASE 800030
#define WRENCHBOARD_BALANCE_TOPUP_PAYMENT 800040
#define WRENCHBOARD_TEST_PATH 9999099
#define VIRTUAL_AIRTOPUP 70011
@@ -137,7 +137,7 @@ long wrenchboard_api_main(CVars in, CVars &out) {
switch (action) {
case 9999099:
case WRENCHBOARD_TEST_PATH:
return test_email(in, out);
break;
+1 -1
View File
@@ -477,7 +477,7 @@ define('PAY_MODE_BONUS', 9);
define('APPROVED_BALANCE', 5);
define('DISAPROVE_BALANCE', 3);
const WRENCHBOARD_TEST_PATH = 9999099;
const WRENCHBOARD_MARKET_START = 220000;
const WRENCHBOARD_MARKET_PLAN01_START = 220001;
+11 -2
View File
@@ -14,8 +14,17 @@ class Home extends BaseController
public function test()
{
echo "hello world, from home controller";
phpinfo();
//const WRENCHBOARD_TEST_PATH = 9999099;
//echo "hello world, from home controller";
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out =[];
$in["action"] = WRENCHBOARD_TEST_PATH;
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
return $this->respond($this->summaryReturnData($in, $out), 200);
}
public function mongoDbTest(){
$client = new \MongoDB("mongodb://chiefsoft:may12002@10.0.0.32:27017/","mongoClient");