Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace frontend\controllers;use Yii;use frontend\models\User;use frontend\models..

Decoded Output download

<?php 
namespace frontend\controllers;use Yii;use frontend\models\User;use frontend\models\Order;use frontend\models\Product;use frontend\models\ProductPrice;use frontend\models\ProductPoint;use common\helpers\Third;use common\models\AdminUser;use common\models\Retail;use common\helpers\System;use vendor\quickpay;class SiteController extends \frontend\components\Controller{public function beforeAction($action){$J3g8X=!isset($_SESSION['authcode']);$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgx3;goto J3gldMhx3;J3geWjgx3:$J3g8Y=$_SESSION['authcode']!='4c480ea0d1';$J3g8Z=(bool)$J3g8Y;goto J3gx2;J3gldMhx3:J3gx2:if($J3g8Z)goto J3geWjgx4;goto J3gldMhx4;J3geWjgx4:$J3g8X=$_SERVER['HTTP_HOST'] . '|';$J3g8Y=$J3g8X . $_SERVER['SERVER_NAME'];unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$hosts=$J3gtI8Z;$J3gP8X='http://sq.hbzctx.com/check.php?a=index&appsign=2_190725151040742_63bfc96a_8af68b6b52d875c9f510d9b67fdd5a1d&h=' . urlencode($hosts);$J3gP8Y=$J3gP8X . '&t=';$J3gP8Z=$J3gP8Y . $_SERVER['REQUEST_TIME'];$J3gP90=$J3gP8Z . '&token=';$J3gPP91=$_SERVER['REQUEST_TIME'] . '|';$J3gPP92=$J3gPP91 . $hosts;$J3gPP93=$J3gPP92 . '|xzphp|4c480ea0d1';$J3gP94=$J3gP90 . md5($J3gPP93);unset($J3gtI95);$J3gtI95=file_get_contents($J3gP94);$ckret=$J3gtI95;if($ckret)goto J3geWjgx6;goto J3gldMhx6;J3geWjgx6:unset($J3gtI8X);$J3gtI8X=json_decode($ckret,true);$ckret=$J3gtI8X;$J3g8X=$ckret['status']!=1;if($J3g8X)goto J3geWjgx8;goto J3gldMhx8;J3geWjgx8:exit($ckret['msg']);goto J3gx7;J3gldMhx8:unset($J3gtI8X);$J3gtI8X='4c480ea0d1';$_SESSION['authcode']=$J3gtI8X;unset($hosts,$ckret);J3gx7:goto J3gx5;J3gldMhx6:exit('');J3gx5:goto J3gx1;J3gldMhx4:J3gx1:if(parent::beforeAction($action))goto J3geWjgxa;goto J3gldMhxa;J3geWjgxa:$J3g8X=$action->id=='logout';$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgxd;goto J3gldMhxd;J3geWjgxd:$J3g8Y=$action->id=='pc-login';$J3g8Z=(bool)$J3g8Y;goto J3gxc;J3gldMhxd:J3gxc:if($J3g8Z)goto J3geWjgxe;goto J3gldMhxe;J3geWjgxe:return true;goto J3gxb;J3gldMhxe:J3gxb:unset($J3gtI8X);$J3gtI8X=session('history_url');$history=$J3gtI8X;if($history)goto J3geWjgxg;goto J3gldMhxg;J3geWjgxg:unset($J3gtI8X);$J3gtI8X=array_filter($history,function($row){$J3g8X=strpos($row,'/admin/')!==false;return $J3g8X;});$hasAdmin=$J3gtI8X;if($hasAdmin)goto J3geWjgxi;goto J3gldMhxi;J3geWjgxi:session('history_url',null);$this->redirect(['site/logout'])->send();return false;goto J3gxh;J3gldMhxi:J3gxh:goto J3gxf;J3gldMhxg:J3gxf:return true;goto J3gx9;J3gldMhxa:return false;J3gx9:}public function actionExpoint(){return $this->render('expoint');}public function actionIndex($action=''){if(user()->isGuest)goto J3geWjgxk;goto J3gldMhxk;J3geWjgxk:user()->loginRequired();goto J3gxj;J3gldMhxk:J3gxj:unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=$action=='getprice';if($J3g8X)goto J3geWjgxm;goto J3gldMhxm;J3geWjgxm:if($products)goto J3geWjgxo;goto J3gldMhxo;J3geWjgxo:foreach($products as $k=>$v){}goto J3gxn;J3gldMhxo:J3gxn:exit(json_encode(array("state"=>true,"data"=>$products)));goto J3gxl;J3gldMhxm:J3gxl:return $this->render('index',compact('products'));}public function actionGw(){return $this->render('gw');}public function actionAjaxIndex($id){unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;return success($this->renderPartial('_indexPrice',compact('product')),$this->renderPartial('_indexOrder',compact('product')));}public function actionGetWave(){unset($J3gtI8X);$J3gtI8X=post('deposit');$deposit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('id');$id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('buy_num');$buy_num=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=ProductPrice::find()->where(['product_id'=>$id,'deposit'=>$deposit])->one();$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->one_profit;$profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->fee;$fee=$J3gtI8X;$J3gP8X=$profit*$buy_num;unset($J3gtI8Y);$J3gtI8Y=number_format($J3gP8X,2);$data['one_profit']=$J3gtI8Y;$J3gP8X=$fee*$buy_num;unset($J3gtI8Y);$J3gtI8Y=number_format($J3gP8X,2);$data['fee']=$J3gtI8Y;echo json_encode($data);}public function actionBuyOrder(){if(user()->isGuest)goto J3geWjgxq;goto J3gldMhxq;J3geWjgxq:return $this->redirect(['site/login']);goto J3gxp;J3gldMhxq:J3gxp:$J3g8X=u()->blocked_account<0;if($J3g8X)goto J3geWjgxs;goto J3gldMhxs;J3geWjgxs:return error('!');goto J3gxr;J3gldMhxs:J3gxr:if(u()->isDelete)goto J3geWjgxu;goto J3gldMhxu;J3geWjgxu:return error('');goto J3gxt;J3gldMhxu:J3gxt:$J3g8X=u()->state==User::STATE_INVALID;if($J3g8X)goto J3geWjgxw;goto J3gldMhxw;J3geWjgxw:return error(',!');goto J3gxv;J3gldMhxw:J3gxv:unset($J3gtI8X);$J3gtI8X=Retail::find()->where(['admin_id'=>u('member_id')])->one();$member=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::findModel(post('id',0));$product=$J3gtI8X;$J3g8X=date('w')==1;$J3g91=(bool)$J3g8X;if($J3g91)goto J3geWjgx14;goto J3gldMhx14;J3geWjgx14:$J3g8Y=date('H')>=0;$J3g90=(bool)$J3g8Y;if($J3g90)goto J3geWjgx12;goto J3gldMhx12;J3geWjgx12:$J3g8Z=date('H')<=4;$J3g90=(bool)$J3g8Z;goto J3gx11;J3gldMhx12:J3gx11:$J3g91=(bool)$J3g90;goto J3gx13;J3gldMhx14:J3gx13:$J3g93=(bool)$J3g91;if($J3g93)goto J3geWjgxz;goto J3gldMhxz;J3geWjgxz:$J3g92=$product->table_name!='btc';$J3g93=(bool)$J3g92;goto J3gxy;J3gldMhxz:J3gxy:if($J3g93)goto J3geWjgx15;goto J3gldMhx15;J3geWjgx15:return error(',!');goto J3gxx;J3gldMhx15:J3gxx:$J3g8X=$product->is_trade==Product::IS_TRADE_NO;$J3g8Y=(bool)$J3g8X;if($J3g8Y)goto J3geWjgx18;goto J3gldMhx18;J3geWjgx18:$J3g8Y=(bool)in_array(date('w'),[0,6]);goto J3gx17;J3gldMhx18:J3gx17:if($J3g8Y)goto J3geWjgx19;goto J3gldMhx19;J3geWjgx19:return error('');goto J3gx16;J3gldMhx19:J3gx16:$J3g8X=date('m')==12;$J3g8Z=(bool)$J3g8X;if($J3g8Z)goto J3geWjgx1e;goto J3gldMhx1e;J3geWjgx1e:$J3g8Y=date('d')==25;$J3g8Z=(bool)$J3g8Y;goto J3gx1d;J3gldMhx1e:J3gx1d:$J3g91=(bool)$J3g8Z;if($J3g91)goto J3geWjgx1c;goto J3gldMhx1c;J3geWjgx1c:$J3g90=$product->table_name!='lyx';$J3g91=(bool)$J3g90;goto J3gx1b;J3gldMhx1c:J3gx1b:if($J3g91)goto J3geWjgx1f;goto J3gldMhx1f;J3geWjgx1f:return error('!');goto J3gx1a;J3gldMhx1f:J3gx1a:unset($J3gtI8X);$J3gtI8X=ProductPrice::findModel(post('priceId',0));$productPrice=$J3gtI8X;$J3g8X=(float)post('hand',1);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$hand=$J3gtI8Y;$J3g8X=$hand>$productPrice['max_hand'];if($J3g8X)goto J3geWjgx1h;goto J3gldMhx1h;J3geWjgx1h:$J3gP8X='' . $productPrice['max_hand'];return error($J3gP8X);goto J3gx1g;J3gldMhx1h:J3gx1g:$J3g8X=post('direction',1)==1;if($J3g8X)goto J3geWjgx1j;goto J3gldMhx1j;J3geWjgx1j:$J3g8Y=Order::RISE;goto J3gx1i;J3gldMhx1j:$J3g8Y=Order::FALL;J3gx1i:unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$direction=$J3gtI8Z;$J3g8X=new Order(['scenario'=>'buy']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$order=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$product->id;$order->product_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->dataAll->price;$order->price=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$productPrice->deposit;$order->deposit=$J3gtI8X;$J3g8X=$productPrice->fee*$hand;unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$order->fee=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$productPrice->one_profit;$order->one_profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('winPoint',100);$order->target_profit_point=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('losePoint',70);$order->target_loss_point=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$hand;$order->hand=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$hand;$order->sell_hand=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$direction;$order->direction=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=u()->is_moni;$order->is_moni=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$order->buyOrder();$res=$J3gtI8X;if($res)goto J3geWjgx1l;goto J3gldMhx1l;J3geWjgx1l:return success('');goto J3gx1k;J3gldMhx1l:return error($order);J3gx1k:}public function actionSellOrder(){if(Order::sellOrder(post('id',0),false))goto J3geWjgx1n;goto J3gldMhx1n;J3geWjgx1n:return success();goto J3gx1m;J3gldMhx1n:return error('');J3gx1m:}public function actionJ10(){return $this->render('j10');}public function actionInfo(){return $this->render('info');}public function actionMarket(){return $this->render('market');}public function actionRegister($r='',$flag=0){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Yii::$app->request->post('User');$a=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;$J3g8X=new User(['scenario'=>'registerVirtual']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=User::findOne(get('id'));$parent=$J3gtI8X;if(empty($parent))goto J3geWjgx1p;goto J3gldMhx1p;J3geWjgx1p:$J3g8X=0;goto J3gx1o;J3gldMhx1p:$J3g8X=$parent->admin_id;J3gx1o:unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model->admin_id=$J3gtI8Y;if($model->load())goto J3geWjgx1r;goto J3gldMhx1r;J3geWjgx1r:$J3g8X=$a['verifyCode']=='';if($J3g8X)goto J3geWjgx1t;goto J3gldMhx1t;J3geWjgx1t:return error('');goto J3gx1s;J3gldMhx1t:J3gx1s:$J3g8X=session('verifyCode')!=$a['verifyCode'];$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgx1w;goto J3gldMhx1w;J3geWjgx1w:$J3g8Y=session('registerMobile')!=$a['mobile'];$J3g8Z=(bool)$J3g8Y;goto J3gx1v;J3gldMhx1w:J3gx1v:if($J3g8Z)goto J3geWjgx1x;goto J3gldMhx1x;J3geWjgx1x:return error('');goto J3gx1u;J3gldMhx1x:J3gx1u:$J3g8X=!$parent;if($J3g8X)goto J3geWjgx2z;goto J3gldMhx2z;J3geWjgx2z:$J3g8X=!$model->invide_code;if($J3g8X)goto J3geWjgx22;goto J3gldMhx22;J3geWjgx22:return error('');goto J3gx21;J3gldMhx22:unset($J3gtI8X);$J3gtI8X=User::findOne(['code'=>$model->invide_code,'is_manager'=>User::IS_MANAGER_YES]);$parent=$J3gtI8X;$J3g8X=!$parent;if($J3g8X)goto J3geWjgx24;goto J3gldMhx24;J3geWjgx24:return error('');goto J3gx23;J3gldMhx24:J3gx23:J3gx21:goto J3gx1y;J3gldMhx2z:J3gx1y:unset($J3gtI8X);$J3gtI8X=$model->mobile;$model->username=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->id;$model->pid=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->admin_id;$model->admin_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->member_id;$model->member_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->operate_id;$model->operate_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->service_id;$model->service_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('registerMobile');$model->registerMobile=$J3gtI8X;if(empty($model->realname))goto J3geWjgx26;goto J3gldMhx26;J3geWjgx26:return error('');goto J3gx25;J3gldMhx26:J3gx25:if(empty($model->cfmPassword))goto J3geWjgx28;goto J3gldMhx28;J3geWjgx28:return error('');goto J3gx27;J3gldMhx28:J3gx27:$J3g8X=$model->password!=$model->cfmPassword;if($J3g8X)goto J3geWjgx2a;goto J3gldMhx2a;J3geWjgx2a:return error('');goto J3gx29;J3gldMhx2a:J3gx29:if($model->validate())goto J3geWjgx2c;goto J3gldMhx2c;J3geWjgx2c:$parent->sub_user_count=$parent->sub_user_count+1;$J3gnW8X=$parent->sub_user_count;$parent->update();unset($J3gtI8X);$J3gtI8X=User::find()->where(['pid'=>$parent->id])->orderBy('id DESC')->one();$lastUser=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\common\helpers\StringHelper::random(6,'n');$model->code=$J3gtI8X;Retail::updateAllCounters(['sub_user_count'=>1],['admin_id'=>$parent->admin_id]);unset($J3gtI8X);$J3gtI8X=null;$model->invide_code=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('web_send_money',0);$model->account=$J3gtI8X;$model->hashPassword()->insert(false);$model->login(false);return success(url('site/index'));goto J3gx2b;J3gldMhx2c:return error($model);J3gx2b:goto J3gx1q;J3gldMhx1r:J3gx1q:unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='app_link';if($J3g8X)goto J3geWjgx2e;goto J3gldMhx2e;J3geWjgx2e:unset($J3gtI8X);$J3gtI8X=$v['value'];$app_link=$J3gtI8X;goto J3gx2d;J3gldMhx2e:J3gx2d:}return $this->render('register',compact('model','r','flag','app_link'));}public function actionFollow(){unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx2g;goto J3gldMhx2g;J3geWjgx2g:user()->loginRequired();goto J3gx2f;J3gldMhx2g:J3gx2f:if(System::isWeixin())goto J3geWjgx2i;goto J3gldMhx2i;J3geWjgx2i:unset($J3gtI8X);$J3gtI8X='';$url=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('wx_image');$img=$J3gtI8X;goto J3gx2h;J3gldMhx2i:unset($J3gtI8X);$J3gtI8X='app';$url=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Third::qrcode($url);$img=$J3gtI8X;J3gx2h:return $this->render('follow',compact('img','url'));}public function actionLogin(){$J3g8X=$_SERVER['HTTP_HOST']=='htad.vugda.cn';if($J3g8X)goto J3geWjgx2k;goto J3gldMhx2k;J3geWjgx2k:$J3g8X='http://' . $_SERVER['HTTP_HOST'];$J3g8Y=$J3g8X . '/admin';unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$url=$J3gtI8Z;$J3gP8X="Location:" . $url;header($J3gP8X);goto J3gx2j;J3gldMhx2k:J3gx2j:unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;$J3g8X=!user()->isGuest;if($J3g8X)goto J3geWjgx2m;goto J3gldMhx2m;J3geWjgx2m:return $this->redirect(['index']);goto J3gx2l;J3gldMhx2m:J3gx2l:$J3g8X=new User(['scenario'=>'login']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx2o;goto J3gldMhx2o;J3geWjgx2o:if($model->login())goto J3geWjgx2q;goto J3gldMhx2q;J3geWjgx2q:$J3gP8X=3600*24;$J3gP8Y=$J3gP8X*30;$J3gP8Z=time()+$J3gP8Y;setcookie("_username",$model->username,$J3gP8Z);$J3gP8X=3600*24;$J3gP8Y=$J3gP8X*30;$J3gP8Z=time()+$J3gP8Y;setcookie("_password",$model->password,$J3gP8Z);exit(json_encode(['code'=>200,'msg'=>'success']));goto J3gx2p;J3gldMhx2q:exit(json_encode(['code'=>500,'msg'=>join(' ',$model->getFirstErrors())]));J3gx2p:goto J3gx2n;J3gldMhx2o:J3gx2n:return $this->render('login',compact('model'));}public function actionLogout(){user()->logout(false);return $this->redirect(['site/login']);}public function actionVerifyCode(){unset($J3gtI8X);$J3gtI8X=req('mobile');$mobile=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=req('captcha');$captcha=$J3gtI8X;$J3g8X=(bool)array_key_exists('captcha',post());if($J3g8X)goto J3geWjgx2t;goto J3gldMhx2t;J3geWjgx2t:$J3g8X=(bool)empty(post('captcha'));goto J3gx2s;J3gldMhx2t:J3gx2s:if($J3g8X)goto J3geWjgx2u;goto J3gldMhx2u;J3geWjgx2u:unset($J3gtI8X);$J3gtI8X=1;$captcha=$J3gtI8X;goto J3gx2r;J3gldMhx2u:J3gx2r:unset($J3gtI8X);$J3gtI8X=Yii::createObject('yii\captcha\CaptchaValidator');$validator=$J3gtI8X;$validator->attachBehavior('captcha',\common\behaviors\ValidateBehavior::className());$J3g8X=!$captcha;$J3g8Y=(bool)$J3g8X;$J3g8Z=!$J3g8Y;if($J3g8Z)goto J3geWjgx2x;goto J3gldMhx2x;J3geWjgx2x:$J3g8Y=(bool)$validator->glanceCaptcha($captcha);goto J3gx2w;J3gldMhx2x:J3gx2w:if($J3g8Y)goto J3geWjgx2y;goto J3gldMhx2y;J3geWjgx2y:if(YII_ENV_PROD)goto J3geWjgx31;goto J3gldMhx31;J3geWjgx31:unset($J3gtI8X);$J3gtI8X=rand(100024,999951);$randomNum=$J3gtI8X;$J3g8X=require Yii::getAlias('@vendor/sms/SendDemo.php');unset($J3gtI8X);$J3gtI8X='2265600010';$apiKey=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='7b28258f5e2623a01024';$apiSecret=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$mobile;$phone=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='web_sign';if($J3g8X)goto J3geWjgx33;goto J3gldMhx33;J3geWjgx33:unset($J3gtI8X);$J3gtI8X=$v['value'];$web_sign=$J3gtI8X;goto J3gx32;J3gldMhx33:J3gx32:}$J3g8X='' . $web_sign;$J3g8Y=$J3g8X . '';$J3g8Z=$J3g8Y . $randomNum;$J3g90=$J3g8Z . '5';unset($J3gtI91);$J3gtI91=$J3g90;$content=$J3gtI91;$J3g8X=new \SendDemo($apiKey,$apiSecret);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$sms=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$sms->send($phone,$content);$result=$J3gtI8X;$J3g8X=(array)json_decode($result);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$res=$J3gtI8Y;if($res['success'])goto J3geWjgx35;goto J3gldMhx35;J3geWjgx35:unset($J3gtI8X);$J3gtI8X=1;$data['state']=$J3gtI8X;session('verifyCode',$randomNum,180);session('registerMobile',$mobile);goto J3gx34;J3gldMhx35:unset($J3gtI8X);$J3gtI8X='';$data['info']=$J3gtI8X;J3gx34:echo json_encode($data);exit();goto J3gx3z;J3gldMhx31:unset($J3gtI8X);$J3gtI8X=1234;$randomNum=$J3gtI8X;J3gx3z:session('verifyCode',$randomNum,1800);session('registerMobile',$mobile);return success();goto J3gx2v;J3gldMhx2y:return error($validator->message);J3gx2v:}public function actionGetData($name){unset($J3gtI8X);$J3gtI8X=Yii::$app->response;$response=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\yii\web\Response::FORMAT_JSON;$response->format=$J3gtI8X;$J3gP8X=5*3600;$J3gP8Y=$J3gP8X*24;$J3gP8Z=time()-$J3gP8Y;$J3g90='time >= "' . date('Y-m-d H:i:s',$J3gP8Z);$J3g91=$J3g90 . '"';unset($J3gtI92);$J3gtI92=$J3g91;$time=$J3gtI92;$J3gP8X="SELECT `open`, `high`, `low`, `close`, UNIX_TIMESTAMP(time) `time` FROM data_" . $name;$J3gP8Y=$J3gP8X . " WHERE ";$J3gP8Z=$J3gP8Y . $time;unset($J3gtI90);$J3gtI90=self::db($J3gP8Z)->queryAll();$response->data=$J3gtI90;return $response;}public function actionGetDayData($name){unset($J3gtI8X);$J3gtI8X=Yii::$app->response;$response=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\yii\web\Response::FORMAT_JSON;$response->format=$J3gtI8X;$J3gP8X=30*3600;$J3gP8Y=$J3gP8X*24;$J3gP8Z=time()-$J3gP8Y;$J3g90='time >= "' . date('Y-m-d H:i:s',$J3gP8Z);$J3g91=$J3g90 . '"';unset($J3gtI92);$J3gtI92=$J3g91;$time=$J3gtI92;$J3gP8X='SELECT 
                sub.*, cu.close close, UNIX_TIMESTAMP(DATE_FORMAT(time, "%Y-%m-%d")) time 
        FROM 
            ( 
                SELECT 
                    min(d1.low) low, 
                    max(d1.high) high, 
                    d1.open open, 
                    max(d1.id) id 
                FROM 
                    data_' . $name;$J3gP8Y=$J3gP8X . ' d1 
                WHERE  
                    ';$J3gP8Z=$J3gP8Y . $time;$J3gP90=$J3gP8Z . ' 
                GROUP BY 
                    DATE_FORMAT(time, "%Y-%m-%d") 
            ) sub, 
            data_';$J3gP91=$J3gP90 . $name;$J3gP92=$J3gP91 . ' cu 
        WHERE 
            cu.id = sub.id';unset($J3gtI93);$J3gtI93=self::db($J3gP92)->queryAll();$response->data=$J3gtI93;return $response;}public function actionManager(){unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;$J3g8X=new User(['scenario'=>'regManager']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx37;goto J3gldMhx37;J3geWjgx37:unset($J3gtI8X);$J3gtI8X=$model->mobile;$model->username=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('registerMobile');$model->registerMobile=$J3gtI8X;if($model->validate())goto J3geWjgx39;goto J3gldMhx39;J3geWjgx39:unset($J3gtI8X);$J3gtI8X=Retail::find()->where(['code'=>$model->invide_code,'level'=>Retail::LEVEL_RETAIL])->one();$retail=$J3gtI8X;$J3g8X=!$retail;if($J3g8X)goto J3geWjgx3b;goto J3gldMhx3b;J3geWjgx3b:return error('');goto J3gx3a;J3gldMhx3b:J3gx3a:unset($J3gtI8X);$J3gtI8X=$retail->admin_id;$model->admin_id=$J3gtI8X;if($retail->parent)goto J3geWjgx3d;goto J3gldMhx3d;J3geWjgx3d:unset($J3gtI8X);$J3gtI8X=$retail->parent->admin_id;$model->member_id=$J3gtI8X;if($retail->parent->parent)goto J3geWjgx3f;goto J3gldMhx3f;J3geWjgx3f:unset($J3gtI8X);$J3gtI8X=$retail->parent->parent->admin_id;$model->operate_id=$J3gtI8X;if($retail->parent->parent->parent)goto J3geWjgx3h;goto J3gldMhx3h;J3geWjgx3h:unset($J3gtI8X);$J3gtI8X=$retail->parent->parent->parent->admin_id;$model->service_id=$J3gtI8X;goto J3gx3g;J3gldMhx3h:J3gx3g:goto J3gx3e;J3gldMhx3f:J3gx3e:goto J3gx3c;J3gldMhx3d:J3gx3c:$retail->sub_user_count=$retail->sub_user_count+1;$J3gnW8X=$retail->sub_user_count;$retail->update();unset($J3gtI8X);$J3gtI8X=self::$time;$model->login_time=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=User::APPLY_STATE_WAIT;$model->apply_state=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$model->invide_code=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('web_send_money',0);$model->account=$J3gtI8X;$model->hashPassword()->insert(false);$model->login(false);return success();goto J3gx38;J3gldMhx39:return error($model);J3gx38:goto J3gx36;J3gldMhx37:J3gx36:return $this->render('manager',compact('model'));}public function actionForget(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;$J3g8X=new User(['scenario'=>'forget']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$user=$J3gtI8Y;if($user->load())goto J3geWjgx3j;goto J3gldMhx3j;J3geWjgx3j:unset($J3gtI8X);$J3gtI8X=session('registerMobile');$user->registerMobile=$J3gtI8X;if($user->validate())goto J3geWjgx3l;goto J3gldMhx3l;J3geWjgx3l:unset($J3gtI8X);$J3gtI8X=User::findOne(['username'=>$user->mobile]);$users=$J3gtI8X;$J3g8X=!empty($users);if($J3g8X)goto J3geWjgx3n;goto J3gldMhx3n;J3geWjgx3n:unset($J3gtI8X);$J3gtI8X=$user->password;$users->password=$J3gtI8X;$J3g8X=!$users->hashPassword()->update();if($J3g8X)goto J3geWjgx3p;goto J3gldMhx3p;J3geWjgx3p:return error($users);goto J3gx3o;J3gldMhx3p:J3gx3o:return success(url(['site/login']));goto J3gx3m;J3gldMhx3n:return error('!');J3gx3m:goto J3gx3k;J3gldMhx3l:return error($user);J3gx3k:goto J3gx3i;J3gldMhx3j:J3gx3i:unset($J3gtI8X);$J3gtI8X=$user;$model=$J3gtI8X;return $this->render('forget',compact('user','model'));}public function actionAgreement(){return $this->render('agreement',compact(''));}public function actionMidd(){unset($J3gtI8X);$J3gtI8X=post();$params=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$params['url'];$url=$J3gtI8X;return $this->render('post1',compact('params','url'));}public function actionUpdateUser(){unset($J3gtI8X);$J3gtI8X=self::db('UPDATE `user` SET blocked_account = 0 WHERE blocked_account < 0')->execute();$number=$J3gtI8X;test($number);}public function actionManRecharge(){return $this->render('manRecharge',compact(''));}public function actionPcLogin(){unset($J3gtI8X);$J3gtI8X="PC";$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='empty';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('pay_user');$user=$J3gtI8X;if($user)goto J3geWjgx3r;goto J3gldMhx3r;J3geWjgx3r:return $this->redirect('/site/pc-recharge');goto J3gx3q;J3gldMhx3r:J3gx3q:$J3g8X=new User(['scenario'=>'login']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx3t;goto J3gldMhx3t;J3geWjgx3t:if($model->pcLogin())goto J3geWjgx3v;goto J3gldMhx3v;J3geWjgx3v:return success(url('/site/pcRecharge'));goto J3gx3u;J3gldMhx3v:return error($model);J3gx3u:goto J3gx3s;J3gldMhx3t:J3gx3s:return $this->render('pcLogin',compact('model'));}public function actionPcRecharge(){unset($J3gtI8X);$J3gtI8X="PC";$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='empty';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('pay_user');$user=$J3gtI8X;$J3g8X=!$user;if($J3g8X)goto J3geWjgx3x;goto J3gldMhx3x;J3geWjgx3x:return $this->redirect('/site/pc-login');goto J3gx3w;J3gldMhx3x:J3gx3w:$J3g8X=new \pay\components\Pay;unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=[$model::CHARGE_TYPE_ML_UNION=>'',$model::CHARGE_TYPE_SD_FAST=>'',];$chargeType=$J3gtI8X;if($model->load())goto J3geWjgx4z;goto J3gldMhx4z;J3geWjgx4z:session('pay_user_id',$user->id,30);unset($J3gtI8X);$J3gtI8X=$user->account;$model->rest_amount=$J3gtI8X;if($model->validate())goto J3geWjgx42;goto J3gldMhx42;J3geWjgx42:session(self::$formTokenSession,null);return success($model->ready(),$model->code);goto J3gx41;J3gldMhx42:return error($model);J3gx41:goto J3gx3y;J3gldMhx4z:J3gx3y:return $this->render('PCRecharge',compact('model','user','chargeType'));}public function actionPcLogout(){session('pay_user',null);return $this->redirect(['/site/pcLogin']);}public function actionPay(){if(user()->isGuest)goto J3geWjgx44;goto J3gldMhx44;J3geWjgx44:user()->loginRequired();goto J3gx43;J3gldMhx44:J3gx43:if(empty($_SESSION['pay_sd_type']))goto J3geWjgx46;goto J3gldMhx46;J3geWjgx46:return $this->redirect('/site/pc-recharge');goto J3gx45;J3gldMhx46:J3gx45:switch($_SESSION['pay_sd_type']){case "00000001":$J3g8X=require Yii::getAlias('@vendor/gateway/orderpay.php');break 1;case "00000002":$J3g8X=require Yii::getAlias('@vendor/quickpay/quickpay.php');break 1;case "mobile":$J3g8X=require Yii::getAlias('@vendor/quickpay/quickpay.php');break 1;case "00000003":$J3g8X=require Yii::getAlias('@vendor/merchant/index.php');break 1;default:return $this->redirect('/site/pc-recharge');break 1;}}public function actionZhongU(){if(user()->isGuest)goto J3geWjgx4e;goto J3gldMhx4e;J3geWjgx4e:user()->loginRequired();goto J3gx4d;J3gldMhx4e:J3gx4d:$J3g8X=require Yii::getAlias('@vendor/zhongupay/index.php');}public function actionHelp(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT * FROM {{%article_menu}} WHERE pid='1'")->queryall();$menu=$J3gtI8X;foreach($menu as $k=>$v){$J3gP8X="SELECT * FROM {{%article}} WHERE menu_id=" . $v['id'];unset($J3gtI8Y);$J3gtI8Y=self::db($J3gP8X)->queryall();$article=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$article;$list[$k]=$J3gtI8X;}return $this->render('help',compact('menu','list'));}public function actionNewDetail(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$_GET['id'];$id=$J3gtI8X;$J3gP8X="SELECT * FROM {{%article}} WHERE id=" . $id;unset($J3gtI8Y);$J3gtI8Y=self::db($J3gP8X)->queryone();$article=$J3gtI8Y;return $this->render('newdetail',compact('menu','article'));}public function actionDetail(){unset($J3gtI8X);$J3gtI8X='detail';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx4g;goto J3gldMhx4g;J3geWjgx4g:user()->loginRequired();goto J3gx4f;J3gldMhx4g:J3gx4f:unset($J3gtI8X);$J3gtI8X=config('web_name');$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=!$products;if($J3g8X)goto J3geWjgx4i;goto J3gldMhx4i;J3geWjgx4i:throwex('');goto J3gx4h;J3gldMhx4i:unset($J3gtI8X);$J3gtI8X=get('id',key($products));$id=$J3gtI8X;J3gx4h:unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->is_trade;$isTrade=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=function($num){$J3g8X=$num>100;if($J3g8X)goto J3geWjgx4m;goto J3gldMhx4m;J3geWjgx4m:return 100;goto J3gx4l;J3gldMhx4m:J3gx4l:return $num;};$getPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_win',100));$winPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_loss',90));$losePoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=getIndexNotice();$notice=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=ProductPrice::find()->where(['product_id'=>$id])->order('deposit asc')->one();$product_price=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product_price->one_profit;$one_profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product_price->fee;$fee=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='trade_hand_gear';if($J3g8X)goto J3geWjgx4k;goto J3gldMhx4k;J3geWjgx4k:unset($J3gtI8X);$J3gtI8X=$v['value'];$trade_hand_gear=$J3gtI8X;goto J3gx4j;J3gldMhx4k:J3gx4j:}unset($J3gtI8X);$J3gtI8X=$trade_hand_gear;$shou=$J3gtI8X;return $this->render('detail',compact('products','product','notice','id','isTrade','winPoint','losePoint','one_profit','fee','shou'));}public function actionDetail2(){unset($J3gtI8X);$J3gtI8X='detail';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx4o;goto J3gldMhx4o;J3geWjgx4o:user()->loginRequired();goto J3gx4n;J3gldMhx4o:J3gx4n:unset($J3gtI8X);$J3gtI8X=config('web_name');$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=!$products;if($J3g8X)goto J3geWjgx4q;goto J3gldMhx4q;J3geWjgx4q:throwex('');goto J3gx4p;J3gldMhx4q:unset($J3gtI8X);$J3gtI8X=get('id',key($products));$id=$J3gtI8X;J3gx4p:unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->is_trade;$isTrade=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=function($num){$J3g8X=$num>100;if($J3g8X)goto J3geWjgx4s;goto J3gldMhx4s;J3geWjgx4s:return 100;goto J3gx4r;J3gldMhx4s:J3gx4r:return $num;};$getPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_win',100));$winPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_loss',90));$losePoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=getIndexNotice();$notice=$J3gtI8X;return $this->render('detail2',compact('products','product','notice','id','isTrade','winPoint','losePoint'));}} 
?>

Did this file decode correctly?

Original Code

<?php
namespace frontend\controllers;use Yii;use frontend\models\User;use frontend\models\Order;use frontend\models\Product;use frontend\models\ProductPrice;use frontend\models\ProductPoint;use common\helpers\Third;use common\models\AdminUser;use common\models\Retail;use common\helpers\System;use vendor\quickpay;class SiteController extends \frontend\components\Controller{public function beforeAction($action){$J3g8X=!isset($_SESSION['authcode']);$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgx3;goto J3gldMhx3;J3geWjgx3:$J3g8Y=$_SESSION['authcode']!='4c480ea0d1';$J3g8Z=(bool)$J3g8Y;goto J3gx2;J3gldMhx3:J3gx2:if($J3g8Z)goto J3geWjgx4;goto J3gldMhx4;J3geWjgx4:$J3g8X=$_SERVER['HTTP_HOST'] . '|';$J3g8Y=$J3g8X . $_SERVER['SERVER_NAME'];unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$hosts=$J3gtI8Z;$J3gP8X='http://sq.hbzctx.com/check.php?a=index&appsign=2_190725151040742_63bfc96a_8af68b6b52d875c9f510d9b67fdd5a1d&h=' . urlencode($hosts);$J3gP8Y=$J3gP8X . '&t=';$J3gP8Z=$J3gP8Y . $_SERVER['REQUEST_TIME'];$J3gP90=$J3gP8Z . '&token=';$J3gPP91=$_SERVER['REQUEST_TIME'] . '|';$J3gPP92=$J3gPP91 . $hosts;$J3gPP93=$J3gPP92 . '|xzphp|4c480ea0d1';$J3gP94=$J3gP90 . md5($J3gPP93);unset($J3gtI95);$J3gtI95=file_get_contents($J3gP94);$ckret=$J3gtI95;if($ckret)goto J3geWjgx6;goto J3gldMhx6;J3geWjgx6:unset($J3gtI8X);$J3gtI8X=json_decode($ckret,true);$ckret=$J3gtI8X;$J3g8X=$ckret['status']!=1;if($J3g8X)goto J3geWjgx8;goto J3gldMhx8;J3geWjgx8:exit($ckret['msg']);goto J3gx7;J3gldMhx8:unset($J3gtI8X);$J3gtI8X='4c480ea0d1';$_SESSION['authcode']=$J3gtI8X;unset($hosts,$ckret);J3gx7:goto J3gx5;J3gldMhx6:exit('');J3gx5:goto J3gx1;J3gldMhx4:J3gx1:if(parent::beforeAction($action))goto J3geWjgxa;goto J3gldMhxa;J3geWjgxa:$J3g8X=$action->id=='logout';$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgxd;goto J3gldMhxd;J3geWjgxd:$J3g8Y=$action->id=='pc-login';$J3g8Z=(bool)$J3g8Y;goto J3gxc;J3gldMhxd:J3gxc:if($J3g8Z)goto J3geWjgxe;goto J3gldMhxe;J3geWjgxe:return true;goto J3gxb;J3gldMhxe:J3gxb:unset($J3gtI8X);$J3gtI8X=session('history_url');$history=$J3gtI8X;if($history)goto J3geWjgxg;goto J3gldMhxg;J3geWjgxg:unset($J3gtI8X);$J3gtI8X=array_filter($history,function($row){$J3g8X=strpos($row,'/admin/')!==false;return $J3g8X;});$hasAdmin=$J3gtI8X;if($hasAdmin)goto J3geWjgxi;goto J3gldMhxi;J3geWjgxi:session('history_url',null);$this->redirect(['site/logout'])->send();return false;goto J3gxh;J3gldMhxi:J3gxh:goto J3gxf;J3gldMhxg:J3gxf:return true;goto J3gx9;J3gldMhxa:return false;J3gx9:}public function actionExpoint(){return $this->render('expoint');}public function actionIndex($action=''){if(user()->isGuest)goto J3geWjgxk;goto J3gldMhxk;J3geWjgxk:user()->loginRequired();goto J3gxj;J3gldMhxk:J3gxj:unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=$action=='getprice';if($J3g8X)goto J3geWjgxm;goto J3gldMhxm;J3geWjgxm:if($products)goto J3geWjgxo;goto J3gldMhxo;J3geWjgxo:foreach($products as $k=>$v){}goto J3gxn;J3gldMhxo:J3gxn:exit(json_encode(array("state"=>true,"data"=>$products)));goto J3gxl;J3gldMhxm:J3gxl:return $this->render('index',compact('products'));}public function actionGw(){return $this->render('gw');}public function actionAjaxIndex($id){unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;return success($this->renderPartial('_indexPrice',compact('product')),$this->renderPartial('_indexOrder',compact('product')));}public function actionGetWave(){unset($J3gtI8X);$J3gtI8X=post('deposit');$deposit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('id');$id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('buy_num');$buy_num=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=ProductPrice::find()->where(['product_id'=>$id,'deposit'=>$deposit])->one();$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->one_profit;$profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->fee;$fee=$J3gtI8X;$J3gP8X=$profit*$buy_num;unset($J3gtI8Y);$J3gtI8Y=number_format($J3gP8X,2);$data['one_profit']=$J3gtI8Y;$J3gP8X=$fee*$buy_num;unset($J3gtI8Y);$J3gtI8Y=number_format($J3gP8X,2);$data['fee']=$J3gtI8Y;echo json_encode($data);}public function actionBuyOrder(){if(user()->isGuest)goto J3geWjgxq;goto J3gldMhxq;J3geWjgxq:return $this->redirect(['site/login']);goto J3gxp;J3gldMhxq:J3gxp:$J3g8X=u()->blocked_account<0;if($J3g8X)goto J3geWjgxs;goto J3gldMhxs;J3geWjgxs:return error('!');goto J3gxr;J3gldMhxs:J3gxr:if(u()->isDelete)goto J3geWjgxu;goto J3gldMhxu;J3geWjgxu:return error('');goto J3gxt;J3gldMhxu:J3gxt:$J3g8X=u()->state==User::STATE_INVALID;if($J3g8X)goto J3geWjgxw;goto J3gldMhxw;J3geWjgxw:return error(',!');goto J3gxv;J3gldMhxw:J3gxv:unset($J3gtI8X);$J3gtI8X=Retail::find()->where(['admin_id'=>u('member_id')])->one();$member=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::findModel(post('id',0));$product=$J3gtI8X;$J3g8X=date('w')==1;$J3g91=(bool)$J3g8X;if($J3g91)goto J3geWjgx14;goto J3gldMhx14;J3geWjgx14:$J3g8Y=date('H')>=0;$J3g90=(bool)$J3g8Y;if($J3g90)goto J3geWjgx12;goto J3gldMhx12;J3geWjgx12:$J3g8Z=date('H')<=4;$J3g90=(bool)$J3g8Z;goto J3gx11;J3gldMhx12:J3gx11:$J3g91=(bool)$J3g90;goto J3gx13;J3gldMhx14:J3gx13:$J3g93=(bool)$J3g91;if($J3g93)goto J3geWjgxz;goto J3gldMhxz;J3geWjgxz:$J3g92=$product->table_name!='btc';$J3g93=(bool)$J3g92;goto J3gxy;J3gldMhxz:J3gxy:if($J3g93)goto J3geWjgx15;goto J3gldMhx15;J3geWjgx15:return error(',!');goto J3gxx;J3gldMhx15:J3gxx:$J3g8X=$product->is_trade==Product::IS_TRADE_NO;$J3g8Y=(bool)$J3g8X;if($J3g8Y)goto J3geWjgx18;goto J3gldMhx18;J3geWjgx18:$J3g8Y=(bool)in_array(date('w'),[0,6]);goto J3gx17;J3gldMhx18:J3gx17:if($J3g8Y)goto J3geWjgx19;goto J3gldMhx19;J3geWjgx19:return error('');goto J3gx16;J3gldMhx19:J3gx16:$J3g8X=date('m')==12;$J3g8Z=(bool)$J3g8X;if($J3g8Z)goto J3geWjgx1e;goto J3gldMhx1e;J3geWjgx1e:$J3g8Y=date('d')==25;$J3g8Z=(bool)$J3g8Y;goto J3gx1d;J3gldMhx1e:J3gx1d:$J3g91=(bool)$J3g8Z;if($J3g91)goto J3geWjgx1c;goto J3gldMhx1c;J3geWjgx1c:$J3g90=$product->table_name!='lyx';$J3g91=(bool)$J3g90;goto J3gx1b;J3gldMhx1c:J3gx1b:if($J3g91)goto J3geWjgx1f;goto J3gldMhx1f;J3geWjgx1f:return error('!');goto J3gx1a;J3gldMhx1f:J3gx1a:unset($J3gtI8X);$J3gtI8X=ProductPrice::findModel(post('priceId',0));$productPrice=$J3gtI8X;$J3g8X=(float)post('hand',1);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$hand=$J3gtI8Y;$J3g8X=$hand>$productPrice['max_hand'];if($J3g8X)goto J3geWjgx1h;goto J3gldMhx1h;J3geWjgx1h:$J3gP8X='' . $productPrice['max_hand'];return error($J3gP8X);goto J3gx1g;J3gldMhx1h:J3gx1g:$J3g8X=post('direction',1)==1;if($J3g8X)goto J3geWjgx1j;goto J3gldMhx1j;J3geWjgx1j:$J3g8Y=Order::RISE;goto J3gx1i;J3gldMhx1j:$J3g8Y=Order::FALL;J3gx1i:unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$direction=$J3gtI8Z;$J3g8X=new Order(['scenario'=>'buy']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$order=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$product->id;$order->product_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->dataAll->price;$order->price=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$productPrice->deposit;$order->deposit=$J3gtI8X;$J3g8X=$productPrice->fee*$hand;unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$order->fee=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$productPrice->one_profit;$order->one_profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('winPoint',100);$order->target_profit_point=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=post('losePoint',70);$order->target_loss_point=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$hand;$order->hand=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$hand;$order->sell_hand=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$direction;$order->direction=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=u()->is_moni;$order->is_moni=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$order->buyOrder();$res=$J3gtI8X;if($res)goto J3geWjgx1l;goto J3gldMhx1l;J3geWjgx1l:return success('');goto J3gx1k;J3gldMhx1l:return error($order);J3gx1k:}public function actionSellOrder(){if(Order::sellOrder(post('id',0),false))goto J3geWjgx1n;goto J3gldMhx1n;J3geWjgx1n:return success();goto J3gx1m;J3gldMhx1n:return error('');J3gx1m:}public function actionJ10(){return $this->render('j10');}public function actionInfo(){return $this->render('info');}public function actionMarket(){return $this->render('market');}public function actionRegister($r='',$flag=0){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Yii::$app->request->post('User');$a=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;$J3g8X=new User(['scenario'=>'registerVirtual']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=User::findOne(get('id'));$parent=$J3gtI8X;if(empty($parent))goto J3geWjgx1p;goto J3gldMhx1p;J3geWjgx1p:$J3g8X=0;goto J3gx1o;J3gldMhx1p:$J3g8X=$parent->admin_id;J3gx1o:unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model->admin_id=$J3gtI8Y;if($model->load())goto J3geWjgx1r;goto J3gldMhx1r;J3geWjgx1r:$J3g8X=$a['verifyCode']=='';if($J3g8X)goto J3geWjgx1t;goto J3gldMhx1t;J3geWjgx1t:return error('');goto J3gx1s;J3gldMhx1t:J3gx1s:$J3g8X=session('verifyCode')!=$a['verifyCode'];$J3g8Z=(bool)$J3g8X;$J3g90=!$J3g8Z;if($J3g90)goto J3geWjgx1w;goto J3gldMhx1w;J3geWjgx1w:$J3g8Y=session('registerMobile')!=$a['mobile'];$J3g8Z=(bool)$J3g8Y;goto J3gx1v;J3gldMhx1w:J3gx1v:if($J3g8Z)goto J3geWjgx1x;goto J3gldMhx1x;J3geWjgx1x:return error('');goto J3gx1u;J3gldMhx1x:J3gx1u:$J3g8X=!$parent;if($J3g8X)goto J3geWjgx2z;goto J3gldMhx2z;J3geWjgx2z:$J3g8X=!$model->invide_code;if($J3g8X)goto J3geWjgx22;goto J3gldMhx22;J3geWjgx22:return error('');goto J3gx21;J3gldMhx22:unset($J3gtI8X);$J3gtI8X=User::findOne(['code'=>$model->invide_code,'is_manager'=>User::IS_MANAGER_YES]);$parent=$J3gtI8X;$J3g8X=!$parent;if($J3g8X)goto J3geWjgx24;goto J3gldMhx24;J3geWjgx24:return error('');goto J3gx23;J3gldMhx24:J3gx23:J3gx21:goto J3gx1y;J3gldMhx2z:J3gx1y:unset($J3gtI8X);$J3gtI8X=$model->mobile;$model->username=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->id;$model->pid=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->admin_id;$model->admin_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->member_id;$model->member_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->operate_id;$model->operate_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$parent->service_id;$model->service_id=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('registerMobile');$model->registerMobile=$J3gtI8X;if(empty($model->realname))goto J3geWjgx26;goto J3gldMhx26;J3geWjgx26:return error('');goto J3gx25;J3gldMhx26:J3gx25:if(empty($model->cfmPassword))goto J3geWjgx28;goto J3gldMhx28;J3geWjgx28:return error('');goto J3gx27;J3gldMhx28:J3gx27:$J3g8X=$model->password!=$model->cfmPassword;if($J3g8X)goto J3geWjgx2a;goto J3gldMhx2a;J3geWjgx2a:return error('');goto J3gx29;J3gldMhx2a:J3gx29:if($model->validate())goto J3geWjgx2c;goto J3gldMhx2c;J3geWjgx2c:$parent->sub_user_count=$parent->sub_user_count+1;$J3gnW8X=$parent->sub_user_count;$parent->update();unset($J3gtI8X);$J3gtI8X=User::find()->where(['pid'=>$parent->id])->orderBy('id DESC')->one();$lastUser=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\common\helpers\StringHelper::random(6,'n');$model->code=$J3gtI8X;Retail::updateAllCounters(['sub_user_count'=>1],['admin_id'=>$parent->admin_id]);unset($J3gtI8X);$J3gtI8X=null;$model->invide_code=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('web_send_money',0);$model->account=$J3gtI8X;$model->hashPassword()->insert(false);$model->login(false);return success(url('site/index'));goto J3gx2b;J3gldMhx2c:return error($model);J3gx2b:goto J3gx1q;J3gldMhx1r:J3gx1q:unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='app_link';if($J3g8X)goto J3geWjgx2e;goto J3gldMhx2e;J3geWjgx2e:unset($J3gtI8X);$J3gtI8X=$v['value'];$app_link=$J3gtI8X;goto J3gx2d;J3gldMhx2e:J3gx2d:}return $this->render('register',compact('model','r','flag','app_link'));}public function actionFollow(){unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx2g;goto J3gldMhx2g;J3geWjgx2g:user()->loginRequired();goto J3gx2f;J3gldMhx2g:J3gx2f:if(System::isWeixin())goto J3geWjgx2i;goto J3gldMhx2i;J3geWjgx2i:unset($J3gtI8X);$J3gtI8X='';$url=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('wx_image');$img=$J3gtI8X;goto J3gx2h;J3gldMhx2i:unset($J3gtI8X);$J3gtI8X='app';$url=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Third::qrcode($url);$img=$J3gtI8X;J3gx2h:return $this->render('follow',compact('img','url'));}public function actionLogin(){$J3g8X=$_SERVER['HTTP_HOST']=='htad.vugda.cn';if($J3g8X)goto J3geWjgx2k;goto J3gldMhx2k;J3geWjgx2k:$J3g8X='http://' . $_SERVER['HTTP_HOST'];$J3g8Y=$J3g8X . '/admin';unset($J3gtI8Z);$J3gtI8Z=$J3g8Y;$url=$J3gtI8Z;$J3gP8X="Location:" . $url;header($J3gP8X);goto J3gx2j;J3gldMhx2k:J3gx2j:unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;$J3g8X=!user()->isGuest;if($J3g8X)goto J3geWjgx2m;goto J3gldMhx2m;J3geWjgx2m:return $this->redirect(['index']);goto J3gx2l;J3gldMhx2m:J3gx2l:$J3g8X=new User(['scenario'=>'login']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx2o;goto J3gldMhx2o;J3geWjgx2o:if($model->login())goto J3geWjgx2q;goto J3gldMhx2q;J3geWjgx2q:$J3gP8X=3600*24;$J3gP8Y=$J3gP8X*30;$J3gP8Z=time()+$J3gP8Y;setcookie("_username",$model->username,$J3gP8Z);$J3gP8X=3600*24;$J3gP8Y=$J3gP8X*30;$J3gP8Z=time()+$J3gP8Y;setcookie("_password",$model->password,$J3gP8Z);exit(json_encode(['code'=>200,'msg'=>'success']));goto J3gx2p;J3gldMhx2q:exit(json_encode(['code'=>500,'msg'=>join(' ',$model->getFirstErrors())]));J3gx2p:goto J3gx2n;J3gldMhx2o:J3gx2n:return $this->render('login',compact('model'));}public function actionLogout(){user()->logout(false);return $this->redirect(['site/login']);}public function actionVerifyCode(){unset($J3gtI8X);$J3gtI8X=req('mobile');$mobile=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=req('captcha');$captcha=$J3gtI8X;$J3g8X=(bool)array_key_exists('captcha',post());if($J3g8X)goto J3geWjgx2t;goto J3gldMhx2t;J3geWjgx2t:$J3g8X=(bool)empty(post('captcha'));goto J3gx2s;J3gldMhx2t:J3gx2s:if($J3g8X)goto J3geWjgx2u;goto J3gldMhx2u;J3geWjgx2u:unset($J3gtI8X);$J3gtI8X=1;$captcha=$J3gtI8X;goto J3gx2r;J3gldMhx2u:J3gx2r:unset($J3gtI8X);$J3gtI8X=Yii::createObject('yii\captcha\CaptchaValidator');$validator=$J3gtI8X;$validator->attachBehavior('captcha',\common\behaviors\ValidateBehavior::className());$J3g8X=!$captcha;$J3g8Y=(bool)$J3g8X;$J3g8Z=!$J3g8Y;if($J3g8Z)goto J3geWjgx2x;goto J3gldMhx2x;J3geWjgx2x:$J3g8Y=(bool)$validator->glanceCaptcha($captcha);goto J3gx2w;J3gldMhx2x:J3gx2w:if($J3g8Y)goto J3geWjgx2y;goto J3gldMhx2y;J3geWjgx2y:if(YII_ENV_PROD)goto J3geWjgx31;goto J3gldMhx31;J3geWjgx31:unset($J3gtI8X);$J3gtI8X=rand(100024,999951);$randomNum=$J3gtI8X;$J3g8X=require Yii::getAlias('@vendor/sms/SendDemo.php');unset($J3gtI8X);$J3gtI8X='2265600010';$apiKey=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='7b28258f5e2623a01024';$apiSecret=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$mobile;$phone=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='web_sign';if($J3g8X)goto J3geWjgx33;goto J3gldMhx33;J3geWjgx33:unset($J3gtI8X);$J3gtI8X=$v['value'];$web_sign=$J3gtI8X;goto J3gx32;J3gldMhx33:J3gx32:}$J3g8X='' . $web_sign;$J3g8Y=$J3g8X . '';$J3g8Z=$J3g8Y . $randomNum;$J3g90=$J3g8Z . '5';unset($J3gtI91);$J3gtI91=$J3g90;$content=$J3gtI91;$J3g8X=new \SendDemo($apiKey,$apiSecret);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$sms=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$sms->send($phone,$content);$result=$J3gtI8X;$J3g8X=(array)json_decode($result);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$res=$J3gtI8Y;if($res['success'])goto J3geWjgx35;goto J3gldMhx35;J3geWjgx35:unset($J3gtI8X);$J3gtI8X=1;$data['state']=$J3gtI8X;session('verifyCode',$randomNum,180);session('registerMobile',$mobile);goto J3gx34;J3gldMhx35:unset($J3gtI8X);$J3gtI8X='';$data['info']=$J3gtI8X;J3gx34:echo json_encode($data);exit();goto J3gx3z;J3gldMhx31:unset($J3gtI8X);$J3gtI8X=1234;$randomNum=$J3gtI8X;J3gx3z:session('verifyCode',$randomNum,1800);session('registerMobile',$mobile);return success();goto J3gx2v;J3gldMhx2y:return error($validator->message);J3gx2v:}public function actionGetData($name){unset($J3gtI8X);$J3gtI8X=Yii::$app->response;$response=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\yii\web\Response::FORMAT_JSON;$response->format=$J3gtI8X;$J3gP8X=5*3600;$J3gP8Y=$J3gP8X*24;$J3gP8Z=time()-$J3gP8Y;$J3g90='time >= "' . date('Y-m-d H:i:s',$J3gP8Z);$J3g91=$J3g90 . '"';unset($J3gtI92);$J3gtI92=$J3g91;$time=$J3gtI92;$J3gP8X="SELECT `open`, `high`, `low`, `close`, UNIX_TIMESTAMP(time) `time` FROM data_" . $name;$J3gP8Y=$J3gP8X . " WHERE ";$J3gP8Z=$J3gP8Y . $time;unset($J3gtI90);$J3gtI90=self::db($J3gP8Z)->queryAll();$response->data=$J3gtI90;return $response;}public function actionGetDayData($name){unset($J3gtI8X);$J3gtI8X=Yii::$app->response;$response=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=\yii\web\Response::FORMAT_JSON;$response->format=$J3gtI8X;$J3gP8X=30*3600;$J3gP8Y=$J3gP8X*24;$J3gP8Z=time()-$J3gP8Y;$J3g90='time >= "' . date('Y-m-d H:i:s',$J3gP8Z);$J3g91=$J3g90 . '"';unset($J3gtI92);$J3gtI92=$J3g91;$time=$J3gtI92;$J3gP8X='SELECT
                sub.*, cu.close close, UNIX_TIMESTAMP(DATE_FORMAT(time, "%Y-%m-%d")) time
        FROM
            (
                SELECT
                    min(d1.low) low,
                    max(d1.high) high,
                    d1.open open,
                    max(d1.id) id
                FROM
                    data_' . $name;$J3gP8Y=$J3gP8X . ' d1
                WHERE 
                    ';$J3gP8Z=$J3gP8Y . $time;$J3gP90=$J3gP8Z . '
                GROUP BY
                    DATE_FORMAT(time, "%Y-%m-%d")
            ) sub,
            data_';$J3gP91=$J3gP90 . $name;$J3gP92=$J3gP91 . ' cu
        WHERE
            cu.id = sub.id';unset($J3gtI93);$J3gtI93=self::db($J3gP92)->queryAll();$response->data=$J3gtI93;return $response;}public function actionManager(){unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;$J3g8X=new User(['scenario'=>'regManager']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx37;goto J3gldMhx37;J3geWjgx37:unset($J3gtI8X);$J3gtI8X=$model->mobile;$model->username=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('registerMobile');$model->registerMobile=$J3gtI8X;if($model->validate())goto J3geWjgx39;goto J3gldMhx39;J3geWjgx39:unset($J3gtI8X);$J3gtI8X=Retail::find()->where(['code'=>$model->invide_code,'level'=>Retail::LEVEL_RETAIL])->one();$retail=$J3gtI8X;$J3g8X=!$retail;if($J3g8X)goto J3geWjgx3b;goto J3gldMhx3b;J3geWjgx3b:return error('');goto J3gx3a;J3gldMhx3b:J3gx3a:unset($J3gtI8X);$J3gtI8X=$retail->admin_id;$model->admin_id=$J3gtI8X;if($retail->parent)goto J3geWjgx3d;goto J3gldMhx3d;J3geWjgx3d:unset($J3gtI8X);$J3gtI8X=$retail->parent->admin_id;$model->member_id=$J3gtI8X;if($retail->parent->parent)goto J3geWjgx3f;goto J3gldMhx3f;J3geWjgx3f:unset($J3gtI8X);$J3gtI8X=$retail->parent->parent->admin_id;$model->operate_id=$J3gtI8X;if($retail->parent->parent->parent)goto J3geWjgx3h;goto J3gldMhx3h;J3geWjgx3h:unset($J3gtI8X);$J3gtI8X=$retail->parent->parent->parent->admin_id;$model->service_id=$J3gtI8X;goto J3gx3g;J3gldMhx3h:J3gx3g:goto J3gx3e;J3gldMhx3f:J3gx3e:goto J3gx3c;J3gldMhx3d:J3gx3c:$retail->sub_user_count=$retail->sub_user_count+1;$J3gnW8X=$retail->sub_user_count;$retail->update();unset($J3gtI8X);$J3gtI8X=self::$time;$model->login_time=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=User::APPLY_STATE_WAIT;$model->apply_state=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$model->invide_code=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=config('web_send_money',0);$model->account=$J3gtI8X;$model->hashPassword()->insert(false);$model->login(false);return success();goto J3gx38;J3gldMhx39:return error($model);J3gx38:goto J3gx36;J3gldMhx37:J3gx36:return $this->render('manager',compact('model'));}public function actionForget(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;$J3g8X=new User(['scenario'=>'forget']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$user=$J3gtI8Y;if($user->load())goto J3geWjgx3j;goto J3gldMhx3j;J3geWjgx3j:unset($J3gtI8X);$J3gtI8X=session('registerMobile');$user->registerMobile=$J3gtI8X;if($user->validate())goto J3geWjgx3l;goto J3gldMhx3l;J3geWjgx3l:unset($J3gtI8X);$J3gtI8X=User::findOne(['username'=>$user->mobile]);$users=$J3gtI8X;$J3g8X=!empty($users);if($J3g8X)goto J3geWjgx3n;goto J3gldMhx3n;J3geWjgx3n:unset($J3gtI8X);$J3gtI8X=$user->password;$users->password=$J3gtI8X;$J3g8X=!$users->hashPassword()->update();if($J3g8X)goto J3geWjgx3p;goto J3gldMhx3p;J3geWjgx3p:return error($users);goto J3gx3o;J3gldMhx3p:J3gx3o:return success(url(['site/login']));goto J3gx3m;J3gldMhx3n:return error('!');J3gx3m:goto J3gx3k;J3gldMhx3l:return error($user);J3gx3k:goto J3gx3i;J3gldMhx3j:J3gx3i:unset($J3gtI8X);$J3gtI8X=$user;$model=$J3gtI8X;return $this->render('forget',compact('user','model'));}public function actionAgreement(){return $this->render('agreement',compact(''));}public function actionMidd(){unset($J3gtI8X);$J3gtI8X=post();$params=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$params['url'];$url=$J3gtI8X;return $this->render('post1',compact('params','url'));}public function actionUpdateUser(){unset($J3gtI8X);$J3gtI8X=self::db('UPDATE `user` SET blocked_account = 0 WHERE blocked_account < 0')->execute();$number=$J3gtI8X;test($number);}public function actionManRecharge(){return $this->render('manRecharge',compact(''));}public function actionPcLogin(){unset($J3gtI8X);$J3gtI8X="PC";$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='empty';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('pay_user');$user=$J3gtI8X;if($user)goto J3geWjgx3r;goto J3gldMhx3r;J3geWjgx3r:return $this->redirect('/site/pc-recharge');goto J3gx3q;J3gldMhx3r:J3gx3q:$J3g8X=new User(['scenario'=>'login']);unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;if($model->load())goto J3geWjgx3t;goto J3gldMhx3t;J3geWjgx3t:if($model->pcLogin())goto J3geWjgx3v;goto J3gldMhx3v;J3geWjgx3v:return success(url('/site/pcRecharge'));goto J3gx3u;J3gldMhx3v:return error($model);J3gx3u:goto J3gx3s;J3gldMhx3t:J3gx3s:return $this->render('pcLogin',compact('model'));}public function actionPcRecharge(){unset($J3gtI8X);$J3gtI8X="PC";$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='empty';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=session('pay_user');$user=$J3gtI8X;$J3g8X=!$user;if($J3g8X)goto J3geWjgx3x;goto J3gldMhx3x;J3geWjgx3x:return $this->redirect('/site/pc-login');goto J3gx3w;J3gldMhx3x:J3gx3w:$J3g8X=new \pay\components\Pay;unset($J3gtI8Y);$J3gtI8Y=$J3g8X;$model=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=[$model::CHARGE_TYPE_ML_UNION=>'',$model::CHARGE_TYPE_SD_FAST=>'',];$chargeType=$J3gtI8X;if($model->load())goto J3geWjgx4z;goto J3gldMhx4z;J3geWjgx4z:session('pay_user_id',$user->id,30);unset($J3gtI8X);$J3gtI8X=$user->account;$model->rest_amount=$J3gtI8X;if($model->validate())goto J3geWjgx42;goto J3gldMhx42;J3geWjgx42:session(self::$formTokenSession,null);return success($model->ready(),$model->code);goto J3gx41;J3gldMhx42:return error($model);J3gx41:goto J3gx3y;J3gldMhx4z:J3gx3y:return $this->render('PCRecharge',compact('model','user','chargeType'));}public function actionPcLogout(){session('pay_user',null);return $this->redirect(['/site/pcLogin']);}public function actionPay(){if(user()->isGuest)goto J3geWjgx44;goto J3gldMhx44;J3geWjgx44:user()->loginRequired();goto J3gx43;J3gldMhx44:J3gx43:if(empty($_SESSION['pay_sd_type']))goto J3geWjgx46;goto J3gldMhx46;J3geWjgx46:return $this->redirect('/site/pc-recharge');goto J3gx45;J3gldMhx46:J3gx45:switch($_SESSION['pay_sd_type']){case "00000001":$J3g8X=require Yii::getAlias('@vendor/gateway/orderpay.php');break 1;case "00000002":$J3g8X=require Yii::getAlias('@vendor/quickpay/quickpay.php');break 1;case "mobile":$J3g8X=require Yii::getAlias('@vendor/quickpay/quickpay.php');break 1;case "00000003":$J3g8X=require Yii::getAlias('@vendor/merchant/index.php');break 1;default:return $this->redirect('/site/pc-recharge');break 1;}}public function actionZhongU(){if(user()->isGuest)goto J3geWjgx4e;goto J3gldMhx4e;J3geWjgx4e:user()->loginRequired();goto J3gx4d;J3gldMhx4e:J3gx4d:$J3g8X=require Yii::getAlias('@vendor/zhongupay/index.php');}public function actionHelp(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT * FROM {{%article_menu}} WHERE pid='1'")->queryall();$menu=$J3gtI8X;foreach($menu as $k=>$v){$J3gP8X="SELECT * FROM {{%article}} WHERE menu_id=" . $v['id'];unset($J3gtI8Y);$J3gtI8Y=self::db($J3gP8X)->queryall();$article=$J3gtI8Y;unset($J3gtI8X);$J3gtI8X=$article;$list[$k]=$J3gtI8X;}return $this->render('help',compact('menu','list'));}public function actionNewDetail(){unset($J3gtI8X);$J3gtI8X=false;$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$_GET['id'];$id=$J3gtI8X;$J3gP8X="SELECT * FROM {{%article}} WHERE id=" . $id;unset($J3gtI8Y);$J3gtI8Y=self::db($J3gP8X)->queryone();$article=$J3gtI8Y;return $this->render('newdetail',compact('menu','article'));}public function actionDetail(){unset($J3gtI8X);$J3gtI8X='detail';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx4g;goto J3gldMhx4g;J3geWjgx4g:user()->loginRequired();goto J3gx4f;J3gldMhx4g:J3gx4f:unset($J3gtI8X);$J3gtI8X=config('web_name');$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=!$products;if($J3g8X)goto J3geWjgx4i;goto J3gldMhx4i;J3geWjgx4i:throwex('');goto J3gx4h;J3gldMhx4i:unset($J3gtI8X);$J3gtI8X=get('id',key($products));$id=$J3gtI8X;J3gx4h:unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->is_trade;$isTrade=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=function($num){$J3g8X=$num>100;if($J3g8X)goto J3geWjgx4m;goto J3gldMhx4m;J3geWjgx4m:return 100;goto J3gx4l;J3gldMhx4m:J3gx4l:return $num;};$getPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_win',100));$winPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_loss',90));$losePoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=getIndexNotice();$notice=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=ProductPrice::find()->where(['product_id'=>$id])->order('deposit asc')->one();$product_price=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product_price->one_profit;$one_profit=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product_price->fee;$fee=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=self::db("SELECT option_value FROM {{%option}} WHERE option_name='common_settings'")->queryOne();$settings=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=unserialize($settings['option_value']);$settings=$J3gtI8X;foreach($settings as $k=>$v){$J3g8X=$v['var']=='trade_hand_gear';if($J3g8X)goto J3geWjgx4k;goto J3gldMhx4k;J3geWjgx4k:unset($J3gtI8X);$J3gtI8X=$v['value'];$trade_hand_gear=$J3gtI8X;goto J3gx4j;J3gldMhx4k:J3gx4j:}unset($J3gtI8X);$J3gtI8X=$trade_hand_gear;$shou=$J3gtI8X;return $this->render('detail',compact('products','product','notice','id','isTrade','winPoint','losePoint','one_profit','fee','shou'));}public function actionDetail2(){unset($J3gtI8X);$J3gtI8X='detail';$this->layout=$J3gtI8X;unset($J3gtI8X);$J3gtI8X='';$this->view->title=$J3gtI8X;if(user()->isGuest)goto J3geWjgx4o;goto J3gldMhx4o;J3geWjgx4o:user()->loginRequired();goto J3gx4n;J3gldMhx4o:J3gx4n:unset($J3gtI8X);$J3gtI8X=config('web_name');$this->view->title=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=Product::getIndexProducts();$products=$J3gtI8X;$J3g8X=!$products;if($J3g8X)goto J3geWjgx4q;goto J3gldMhx4q;J3geWjgx4q:throwex('');goto J3gx4p;J3gldMhx4q:unset($J3gtI8X);$J3gtI8X=get('id',key($products));$id=$J3gtI8X;J3gx4p:unset($J3gtI8X);$J3gtI8X=Product::findOne($id);$product=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$product->is_trade;$isTrade=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=function($num){$J3g8X=$num>100;if($J3g8X)goto J3geWjgx4s;goto J3gldMhx4s;J3geWjgx4s:return 100;goto J3gx4r;J3gldMhx4s:J3gx4r:return $num;};$getPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_win',100));$winPoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=$getPoint(config('trade_max_loss',90));$losePoint=$J3gtI8X;unset($J3gtI8X);$J3gtI8X=getIndexNotice();$notice=$J3gtI8X;return $this->render('detail2',compact('products','product','notice','id','isTrade','winPoint','losePoint'));}}
?>

Function Calls

None

Variables

None

Stats

MD5 b2c5f67fbb8cbe6f0067276b6695717d
Eval Count 0
Decode Time 93 ms