Beispiel #1
0
 /**
  * 更新投资人信息
  *
  */
 public function updateInvestor()
 {
     //获取用户信息
     $investor = CustomerInvestor::where('customer_id', $this->user()->id)->first();
     $investor->fill($this->request->input());
     if ($investor->save()) {
         return return_rest('1', '', '更新成功');
     }
     return return_rest('0', '', '更新失败');
 }