|
|
@@ -42,15 +42,24 @@ class Services extends Base
|
|
|
$label_id = input("param.label_id/s");
|
|
|
$nick_name = input("param.nick_name/s");
|
|
|
|
|
|
-
|
|
|
- $param = [
|
|
|
- 'account_email' => $account_email,
|
|
|
- 'account_phone' => $phone,
|
|
|
- 'address' => $address,
|
|
|
- 'label_id' => $label_id,
|
|
|
- 'nick_name' => $nick_name,
|
|
|
- 'remark' => $remark
|
|
|
- ];
|
|
|
+ if(empty($label_id) || $label_id == 0){
|
|
|
+ $param = [
|
|
|
+ 'account_email' => $account_email,
|
|
|
+ 'account_phone' => $phone,
|
|
|
+ 'address' => $address,
|
|
|
+ 'nick_name' => $nick_name,
|
|
|
+ 'remark' => $remark
|
|
|
+ ];
|
|
|
+ }else{
|
|
|
+ $param = [
|
|
|
+ 'account_email' => $account_email,
|
|
|
+ 'account_phone' => $phone,
|
|
|
+ 'address' => $address,
|
|
|
+ 'label_id' => $label_id,
|
|
|
+ 'nick_name' => $nick_name,
|
|
|
+ 'remark' => $remark
|
|
|
+ ];
|
|
|
+ }
|
|
|
|
|
|
$account = db('accounts')->where('id', $account_id)->select();
|
|
|
if(!empty($account)){
|