| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace pt\controllers;
- use biz\pt\classes\PtYeChangeClass;
- use common\components\dict;
- use common\components\util;
- use Yii;
- class PtYeChangeController extends BaseController
- {
- public $guestAccess = [];
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $status = $get['status'] ?? 0;
- $ptStyle = $get['ptStyle'] ?? dict::getDict('ptStyle', 'hd');
- $tx = $get['tx'] ?? dict::getDict('yeTx', 'canNot');
- $where = [];
- if (!empty($status)) {
- $where['status'] = $status;
- }
- $where['ptStyle'] = $ptStyle;
- if (!empty($tx)) {
- $where['tx'] = $tx;
- }
- $respond = PtYeChangeClass::getChangeList($where);
- if (isset($respond['list']) && !empty($respond['list'])) {
- foreach ($respond['list'] as $key => $val) {
- if ($tx == dict::getDict('yeTx', 'can')) {
- $respond['list'][$key]['balance'] = '-';
- } else {
- $respond['list'][$key]['txBalance'] = '-';
- }
- }
- }
- util::success($respond);
- }
- }
|