$commonConfig['payType'], /** * 小程序类型 */ 'miniprogramType' => $commonConfig['miniprogramType'], /** * 首页列表类型 */ 'firstPageListType' => $commonConfig['firstPageListType'], /** * 微信公众号运营 */ 'wechatPlatform' => [ 'kfMessageType' => $this->_turn(WechatPlatformConstService::KF_MESSAGE_TYPE_MAPPER), 'kfMessageStatus' => $this->_turn(WechatPlatformConstService::KF_MESSAGE_STATUS_MAPPER), ] ]; } private function _turn($arr) { $result = []; foreach ($arr as $key => $val) { $result[] = [ 'label' => $val, 'value' => $key ]; } return $result; } }