|
|
@@ -52,15 +52,15 @@ class UserServiceLogic extends BaseLogic
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
|
|
|
- $where['user_id'] = $params['user_id'];
|
|
|
- $where['type'] = $params['type'];
|
|
|
- $userService = UserService::where($where)->findOrEmpty();
|
|
|
-
|
|
|
- if(!$userService->isEmpty()){
|
|
|
- Db::rollback();
|
|
|
- self::setError('当前用户存在'.$type_name.'服务信息,无需添加');
|
|
|
- return ['code'=>0,'data'=>[]];
|
|
|
- }
|
|
|
+// $where['user_id'] = $params['user_id'];
|
|
|
+// $where['type'] = $params['type'];
|
|
|
+// $userService = UserService::where($where)->findOrEmpty();
|
|
|
+//
|
|
|
+// if(!$userService->isEmpty()){
|
|
|
+// Db::rollback();
|
|
|
+// self::setError('当前用户存在'.$type_name.'服务信息,无需添加');
|
|
|
+// return ['code'=>0,'data'=>[]];
|
|
|
+// }
|
|
|
$result = UserService::create([
|
|
|
'user_id' => $params['user_id'],
|
|
|
'type' => $params['type'] ?? 1,
|