当前位置: 首页>>代码示例>>PHP>>正文


PHP Controller::movefile方法代码示例

本文整理汇总了PHP中App\Http\Controllers\Controller::movefile方法的典型用法代码示例。如果您正苦于以下问题:PHP Controller::movefile方法的具体用法?PHP Controller::movefile怎么用?PHP Controller::movefile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在App\Http\Controllers\Controller的用法示例。


在下文中一共展示了Controller::movefile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createZq

 private function createZq(Request $request)
 {
     $zq = new Zq();
     $data = array('types' => Input::get('types'), 'zq_quote' => Input::get('zq_quote'), 'zq_czfs_sscs' => Input::get('zq_czfs_sscs'), 'zq_czfs_sscs_rate' => Input::get('zq_czfs_sscs_rate'), 'zq_czfs_fscs' => Input::get('zq_czfs_fscs'), 'zq_czfs_fscs_rate' => Input::get('zq_czfs_fscs_rate'), 'zq_czfs_zqzr' => Input::get('zq_czfs_zqzr'), 'zq_czfs_zqzr_rate' => Input::get('zq_czfs_zqzr_rate'), 'zq_delay' => Input::get('zq_delay'), 'zq_warrant' => Input::get('zq_warrant'), 'zq_cscs_ss' => Input::get('zq_cscs_ss'), 'zq_cscs_pj' => Input::get('zq_cscs_pj'), 'zq_cscs_sd' => Input::get('zq_cscs_sd'), 'zq_cscs_dh' => Input::get('zq_cscs_dh'), 'zq_cscs_wt' => Input::get('zq_cscs_wt'), 'zq_file' => Input::get('zq_file'), 'zq_ms' => Input::get('zq_ms'), 'o_name' => Input::get('o_name'), 'o_province' => Input::get('o_province'), 'o_city' => Input::get('o_city'), 'o_contry' => Input::get('o_contry'), 'o_phone' => Input::get('o_phone'), 'o_verify' => Input::get('o_verify'), 'o_contact' => Input::get('o_contact'), 'o_cphone' => Input::get('o_cphone'), 'd_name' => Input::get('d_name'), 'd_province' => Input::get('d_province'), 'd_city' => Input::get('d_city'), 'd_contry' => Input::get('d_contry'), 'd_phone' => Input::get('d_phone'), 'd_verify' => Input::get('d_verify'), 'd_isContact' => Input::get('d_isContact'), 'd_isRepay' => Input::get('d_isRepay'), 'b_time' => Input::get('b_time'), 'b_address' => Input::get('b_address'), 'b_isLaw' => Input::get('b_isLaw'), 'state' => Input::get('state'), 'juid' => Input::get('juid'), 'stars' => Input::get('indexs'), 'collects' => Input::get('collects'), 'applys' => Input::get('applys'), 'delay_scope' => Input::get('delay_scope'), 'money_scope' => Input::get('money_scope'));
     $zq->zq_czfs_sscs = Input::get('zq_czfs_sscs');
     $zq->zq_czfs_fscs = Input::get('zq_czfs_fscs');
     $zq->zq_czfs_zqzr = Input::get('zq_czfs_zqzr');
     if (empty($zq->zq_czfs_sscs)) {
         $data['zq_czfs_sscs'] = false;
     }
     if (empty($zq->zq_czfs_fscs)) {
         $data['zq_czfs_fscs'] = false;
     }
     if (empty($zq->zq_czfs_zqzr)) {
         $data['zq_czfs_zqzr'] = false;
     }
     if (!empty(Input::get('zq_warrant'))) {
         $data['zq_warrant'] = implode("_", Input::get('zq_warrant'));
     }
     $cart = parent::movefile($request, "project");
     if ($cart['status'] == 1) {
         //            return parent::returnJson(1,$cart['msg']);
     } else {
         $data['zq_file'] = $cart['msg'];
         $fileUp = Input::get('fileUp');
         if (!empty($fileUp)) {
             $data['zq_file'] = implode(";", $fileUp) . ";" . $data['zq_file'];
         }
     }
     return $data;
 }
开发者ID:jacke121,项目名称:tdbasset,代码行数:31,代码来源:ZqController.php

示例2: postAuthecompany

 public function postAuthecompany(Request $request)
 {
     $cart = parent::movefile($request, "company");
     if ($cart['status'] == 1) {
         return parent::returnJson(1, $cart['msg']);
     } else {
         $cardnourl = $cart['msg'];
     }
     // $this->validate($request, ['itemname' => 'required|min:3', 'email' =>'required','no'=>'required']);
     $member = new Member();
     $member->id = $this->auth->get()->id;
     $member->type = 2;
     $member->authestatus = 1;
     $member->cardnourl = $cardnourl;
     $member->address = $request->get('address');
     $member->addresscode = $request->get('addresscode');
     $member->roletype = $request->get('roletype');
     $member->itemname = $request->get('itemname');
     $member->email = $request->get('email');
     $member->cardno = $request->get('cardno');
     $member->updatememberInfo($member->id, $member);
     return parent::returnJson(0, "提交成功");
 }
开发者ID:jacke121,项目名称:tdbasset,代码行数:23,代码来源:AuthenticateController.php


注:本文中的App\Http\Controllers\Controller::movefile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。