Browse Source

修改bug

master
王泽彦 10 months ago
parent
commit
ccedf7a9fa
  1. 6
      niucloud/app/service/api/apiService/CustomerResourcesService.php

6
niucloud/app/service/api/apiService/CustomerResourcesService.php

@ -37,7 +37,8 @@ class CustomerResourcesService extends BaseApiService
} }
//获取客户资源详情 //获取客户资源详情
public function getInfo(array $where,string $field = '*'){ public function getInfo(array $where, string $field = '*')
{
$res = [ $res = [
'code' => 0, 'code' => 0,
'msg' => '操作失败', 'msg' => '操作失败',
@ -153,10 +154,11 @@ class CustomerResourcesService extends BaseApiService
'event_type' => 'add'//事件类型"add=添加,edit=修改 'event_type' => 'add'//事件类型"add=添加,edit=修改
];//事件类型"add=添加,edit=修改 ];//事件类型"add=添加,edit=修改
Event::trigger('CalculatePerformance', $event_data)->queue(); Event::trigger('CalculatePerformance', $event_data, true);
return $res; return $res;
} catch (\Exception $exception) { } catch (\Exception $exception) {
Db::rollback(); Db::rollback();
$res['msg'] = $exception->getMessage();
return $res; return $res;
} }
} }

Loading…
Cancel
Save