Exemplo n.º 1
0
 public function actionRechargelist()
 {
     if ($_REQUEST) {
         $uid = yii::$app->user->id;
         $page = intval($_REQUEST[page]);
         $page_num = intval($_REQUEST[num]);
         $result = AloneMethod::recharge_log($uid, $page, $page_num);
         $datas = json_encode($result[data][data]);
         echo $datas;
     }
 }
Exemplo n.º 2
0
 /**
  * Auther:langxi
  *
  * 用户充值记录
  */
 public function actionRechargelog()
 {
     $result = App::AppGet();
     try {
         if ($result['errorNum']) {
             $result = array('errorNum' => $result['errorNum'], 'errorMsg' => $result['errorMsg'], 'data' => null);
         } else {
             $data = $result['data'];
             if (array_key_exists('uid', $data) && array_key_exists('page', $data) && array_key_exists('num', $data)) {
                 $uid = $data['uid'];
                 $page = $data['page'];
                 $num = $data['num'];
                 $result = \frontend\actions\App\AloneMethod::recharge_log($uid, $page, $num);
             } else {
                 $result = array('errorNum' => '1', 'errorMsg' => '参数错误', 'data' => null);
             }
         }
     } catch (ErrorException $e) {
         Yii::error("用户充值记录---异常 方法:actionRechargelog 参数:" . json_encode($result['data']), "app");
         Yii::trace($e->getMessage(), "app");
         $result = array('errorNum' => '7', 'errorMsg' => '服务器异常,请联系管理员', 'data' => null);
     }
     $result = App::AppReturn($result);
     return $result;
 }