|
@@ -464,7 +464,7 @@ class CustomerDepositController extends Controller
|
464
|
464
|
$customerVip->discount = 95;
|
465
|
465
|
$customerVip->create_time = date('Y-m-d H:i:s',time());
|
466
|
466
|
$customerVip->vip_end_time = date('Y-m-d H:i:s',strtotime('+1 year'));
|
467
|
|
- $customerVip->birthday = date('Y',time()).$request->input('birthday');
|
|
467
|
+ $customerVip->birthday = date('Y',time()).'-'.$request->input('birthday');
|
468
|
468
|
$customerVip->is_del = 0;
|
469
|
469
|
|
470
|
470
|
if($customerVip->save()) {
|
|
@@ -516,7 +516,7 @@ class CustomerDepositController extends Controller
|
516
|
516
|
//修改vip用户信息
|
517
|
517
|
$customerVip = CustomerVip::findOrFail($id);
|
518
|
518
|
$customerVip->name = $request->input('name');
|
519
|
|
- $customerVip->birthday = date('Y',time()).$request->input('birthday');
|
|
519
|
+ $customerVip->birthday = date('Y',time()).'-'.$request->input('birthday');
|
520
|
520
|
$customerVip->admin_id = $request->input('admin_id');
|
521
|
521
|
if($customerVip->save()){
|
522
|
522
|
return redirect('/admin/customer/vipList')->with('info', '编辑成功');
|