__('Wechat_encode 0'), '1' => __('Wechat_encode 1'), '2' => __('Wechat_encode 2')]; } public function getPayWeixinOpenList() { return ['0' => __('Pay_weixin_open 0'), '1' => __('Pay_weixin_open 1')]; } public function getPayRoutineOpenList() { return ['0' => __('Pay_routine_open 0'), '1' => __('Pay_routine_open 1')]; } public function getWxOpenPlatformList() { return ['0' => __('Wx_open_platform 0'), '1' => __('Wx_open_platform 1')]; } public function getWechatEncodeTextAttr($value, $data) { $value = $value ? $value : (isset($data['wechat_encode']) ? $data['wechat_encode'] : ''); $list = $this->getWechatEncodeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getPayWeixinOpenTextAttr($value, $data) { $value = $value ? $value : (isset($data['pay_weixin_open']) ? $data['pay_weixin_open'] : ''); $list = $this->getPayWeixinOpenList(); return isset($list[$value]) ? $list[$value] : ''; } public function getPayRoutineOpenTextAttr($value, $data) { $value = $value ? $value : (isset($data['pay_routine_open']) ? $data['pay_routine_open'] : ''); $list = $this->getPayRoutineOpenList(); return isset($list[$value]) ? $list[$value] : ''; } public function getWxOpenPlatformTextAttr($value, $data) { $value = $value ? $value : (isset($data['wx_open_platform']) ? $data['wx_open_platform'] : ''); $list = $this->getWxOpenPlatformList(); return isset($list[$value]) ? $list[$value] : ''; } }