Esempio n. 1
0
 /**
  * Creates a new Withdraw model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Withdraw();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect(['view', 'id' => $model->id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }
Esempio n. 2
0
 /**
  * 记录用户提现操作
  * @param $uid
  * @param $identityid
  * @param $card_top
  * @param $card_last
  * @param $amount
  * @param $userip
  * @param $ybamount
  * @param $ybdrawflowid
  * @param $status
  * @param $msg
  */
 private static function withdrawLog($uid, $identityid, $card_top, $card_last, $amount, $userip, $status, $msg, $ybamount, $ybdrawflowid)
 {
     $withdraw = new Withdraw();
     $withdraw->uid = $uid;
     $withdraw->identityid = $identityid;
     $withdraw->card_top = $card_top;
     $withdraw->card_last = $card_last;
     $withdraw->amount = $amount;
     $withdraw->userip = $userip;
     $withdraw->ybamount = $ybamount;
     $withdraw->ybdrawflowid = $ybdrawflowid;
     $withdraw->status = $status;
     $withdraw->msg = $msg;
     $withdraw->save();
 }