|
|
@@ -1095,7 +1095,11 @@ class UserExtractRepository extends BaseRepository
|
|
1095
|
1095
|
return ['code'=>400,'msg'=>'认证信息与银行卡绑定用户不符'];
|
|
1096
|
1096
|
}
|
|
1097
|
1097
|
if(Db::name("user_withdraw_account")->where(['user_id'=>$data['user_id'],'account_type'=>3,'status'=>0])->value("id")){
|
|
1098
|
|
- return ['code'=>400,'msg'=>'只能绑定一张银行卡'];
|
|
|
1098
|
+ //操作修改
|
|
|
1099
|
+ $data['update_time'] = date("Y-m-d H:i:s");
|
|
|
1100
|
+ Db::name("user_withdraw_account")->where(['user_id'=>$data['user_id'],'account_type'=>3,'status'=>0])->update($data);
|
|
|
1101
|
+ return Db::name("user_withdraw_account")->where(['user_id'=>$data['user_id'],'account_type'=>3,'status'=>0])->value("id");
|
|
|
1102
|
+ // return ['code'=>400,'msg'=>'只能绑定一张银行卡'];
|
|
1099
|
1103
|
}
|
|
1100
|
1104
|
$data['create_time'] = date("Y-m-d H:i:s");
|
|
1101
|
1105
|
return Db::name("user_withdraw_account")->insertGetId($data);
|