There is still a bug in this place. It is not a problem with empty data submission.
电动小老虎
电动小老虎 2017-12-21 19:10:24
0
1
1345

There are still bugs in this place. The problem is not when submitting empty data.

$param = $request->param();

$pwd = (UserModel::get([ 'id'=>$param['id']]))['password'];


//Remove empty data

foreach ( $param as $k=>$v)

                                                                                                                                                                     k]=$v;

                                                                                                                                                             

                                                                                                                                                                                  $param = $request->except('password');

$result = UserModel::update($param,$condition);

电动小老虎
电动小老虎

reply all(1)
电动小老虎

This is correct

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template