|
|
@@ -1287,7 +1287,10 @@ class User extends BaseController
|
|
1287
|
1287
|
$data['addres'] = $this->request->param('addres', null);
|
|
1288
|
1288
|
$data['mark'] = $this->request->param('mark', null);
|
|
1289
|
1289
|
$data['account'] = $this->request->param('account', null);
|
|
1290
|
|
- $data['phone'] = $this->request->param('phone', null);
|
|
|
1290
|
+// $data['phone'] = $this->request->param('phone', null);
|
|
|
1291
|
+ if (!empty($data['account'])) {
|
|
|
1292
|
+ $data['phone'] = $data['account'];
|
|
|
1293
|
+ }
|
|
1291
|
1294
|
$data = array_filter($data, function($value) {
|
|
1292
|
1295
|
return $value !== null;
|
|
1293
|
1296
|
});
|