1234567891011121314151617181920 |
- <?php
- namespace App\Http\Controllers\Channel\OfficialAccount\Transformers;
- class CustomMsgSwitchMultyTransformer
- {
- public function transform($customMsgSwitchMsgs){
- return [
- 'title' => isset($customMsgSwitchMsgs['title']) ? $customMsgSwitchMsgs['title'] : "",
- 'custom_category' => isset($customMsgSwitchMsgs['custom_category']) ? $customMsgSwitchMsgs['custom_category'] : "",
- 'status' => isset($customMsgSwitchMsgs['status']) ? $customMsgSwitchMsgs['status'] : "",
- 'distribution_channel_id' => isset($customMsgSwitchMsgs['distribution_channel_id']) ? $customMsgSwitchMsgs['distribution_channel_id'] : "",
- 'id' => isset($customMsgSwitchMsgs['id']) ? $customMsgSwitchMsgs['id'] : "",
- 'desc_content' => isset($customMsgSwitchMsgs['desc_content']) ? $customMsgSwitchMsgs['desc_content'] : "",
- 'img_url' => isset($customMsgSwitchMsgs['img_url']) ? $customMsgSwitchMsgs['img_url'] : "",
- 'common_is_self_content' => isset($customMsgSwitchMsgs['common_is_self_content']) ? $customMsgSwitchMsgs['common_is_self_content'] : "0",
- 'is_self_content' => isset($customMsgSwitchMsgs['is_self_content']) ? $customMsgSwitchMsgs['is_self_content'] : "0",
- ];
- }
- }
|