Commit adff3f4e authored by twj's avatar twj

调整提现规则

parent 0f799b8f
...@@ -333,7 +333,7 @@ class Profile extends Common ...@@ -333,7 +333,7 @@ class Profile extends Common
// 获取表单上传文件 例如上传了001.jpg // 获取表单上传文件 例如上传了001.jpg
$file = request()->file($file_uploads); $file = request()->file($file_uploads);
// 移动到框架应用根目录/public/uploads/ images目录下 // 移动到框架应用根目录/public/uploads/ images目录下
$info = $file->validate(['size'=>2097152,'ext'=>'jpg,png,gif'])->move(ROOT_PATH . 'public' . DS . 'uploads'. DS .'images'); $info = $file->validate(['size'=>2097152,'ext'=>'jpg,png,gif,jpeg'])->move(ROOT_PATH . 'public' . DS . 'uploads'. DS .'images');
if($info){ if($info){
// 成功上传后 获取上传信息 // 成功上传后 获取上传信息
......
...@@ -68,7 +68,7 @@ class EsopPlan extends Model ...@@ -68,7 +68,7 @@ class EsopPlan extends Model
$data['mid'] = $parameter['mid']; $data['mid'] = $parameter['mid'];
$data['money'] = $parameter['money'] * 100; $data['money'] = $parameter['money'] * 100;
$data['fee'] = $parameter['money'] * config('withdraw_rate'); $data['fee'] = $parameter['money'] * config('withdraw_rate');
$data['stock_id'] = $parameter['stock_id']; $data['esop_plan_id'] = $parameter['esop_plan_id'];
$data['order_no'] = 'estx' . generate_rand_str(10, 3); $data['order_no'] = 'estx' . generate_rand_str(10, 3);
$data['create_time'] = time(); $data['create_time'] = time();
$data['create_ip'] = get_client_ip(0); $data['create_ip'] = get_client_ip(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment