| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace backend\controllers;
- use backend\helpers\RandomHelper;
- use common\helpers\MtKit;
- use common\lib\Mt4Deposit;
- class TestController extends BaseController
- {
- public function actionTestOpenUser()
- {
- $result = MtKit::openUser(629060, RandomHelper::getRandomStringForMt4(), RandomHelper::getRandomStringForMt4(), RandomHelper::getRandomStringForMt4(),
- '测试' . time(), 'XCBVARSTDUSD', 'test@qq.com', '13800000000', 100, '中国', '广东', '深圳', 'sz', '', '', 0);
- return $this->outJson(1, $result);
- }
- public function actionTestOpenUserDemo()
- {
- $result = MtKit::openUserDemo(null, RandomHelper::getRandomStringForMt4(), RandomHelper::getRandomStringForMt4(), RandomHelper::getRandomStringForMt4(),
- '测试' . time(), 1, 'test@qq.com', '13800000000', 100, 'China', null, 'sz', 'sz', null, null, null);
- return $this->outJson(1, $result);
- }
- public function actionTestDeposit()
- {
- $result = MtKit::deposit('600303773', 0.01, 'Auto Commission');
- return $this->outJson(1, $result);
- }
- public function actionTestGroups()
- {
- $result = MtKit::getGroups();
- return $this->outJson(1, $result);
- }
- }
|