has('distribution_channel_id') ? $request->input('distribution_channel_id') : ''; if(empty($distribution_channel_id)) { return response()->error("PARAM_EMPTY"); } $distributionChannelSetting = CustomMsgService::customerImgUrlByChannelId($distribution_channel_id); if (!empty($distributionChannelSetting)) { # code... return response()->item(new CustomMsgControllerTransformer(), $wechatTemplateMsgService); }else{ return response()->success(); } } }