|
@@ -0,0 +1,32 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+define('APP_ID', 'test');
|
|
|
+define('BASE_ROOT_PATH', str_replace('/test/fix', '', dirname(__FILE__)));
|
|
|
+require_once(BASE_ROOT_PATH . '/global.php');
|
|
|
+require_once(BASE_CORE_PATH . '/lrlz.php');
|
|
|
+require_once(BASE_ROOT_PATH . '/fooder.php');
|
|
|
+
|
|
|
+require_once(BASE_HELPER_PATH . '/refill/XYZRefillFactory.php');
|
|
|
+require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
|
|
|
+require_once(BASE_CORE_PATH . '/framework/function/http.php');
|
|
|
+
|
|
|
+
|
|
|
+use PHPUnit\Framework\TestCase;
|
|
|
+
|
|
|
+class TestFix extends TestCase
|
|
|
+{
|
|
|
+ public static function setUpBeforeClass() : void
|
|
|
+ {
|
|
|
+ Base::run_util();
|
|
|
+ }
|
|
|
+
|
|
|
+ public function testStart()
|
|
|
+ {
|
|
|
+ $body = '{"mchid":10493,"buyer_id":66939,"amount":100,"mch_order":"VRS1752264354401005568","notify_url":"https://beta-gw.jinbaozheng.com/open/api/vr/channel/notify/coconut_ll","org_quality":1,"card_type":7,"card_no":"13564998464","product_code":"LL_30000001473","quantity":"1","third_card_type":"1","third_product_type":1,"order_time":1706607366}';
|
|
|
+ $params = json_decode($body,true);
|
|
|
+
|
|
|
+ $state = refill\util::push_addthird($params);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+}
|