本文整理汇总了PHP中BaseMemberControl::pointshopMInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseMemberControl::pointshopMInfo方法的具体用法?PHP BaseMemberControl::pointshopMInfo怎么用?PHP BaseMemberControl::pointshopMInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseMemberControl
的用法示例。
在下文中一共展示了BaseMemberControl::pointshopMInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: voucher_listOp
public function voucher_listOp()
{
$model = Model('voucher');
$list = $model->getMemberVoucherList($_SESSION['member_id'], $_GET['select_detail_state'], 10);
// add by wangjiang查询会员及其附属信息
$result = parent::pointshopMInfo(true);
$member_info = $result['member_info'];
unset($result);
//end wangjiang
//取已经使用过并且未有voucher_order_id的代金券的订单ID
$used_voucher_code = array();
$voucher_order = array();
if (!empty($list)) {
foreach ($list as $v) {
if ($v['voucher_state'] == 2 && empty($v['voucher_order_id'])) {
$used_voucher_code[] = $v['voucher_code'];
}
}
}
if (!empty($used_voucher_code)) {
$order_list = Model('order')->getOrderCommonList(array('voucher_code' => array('in', $used_voucher_code)), 'order_id,voucher_code');
if (!empty($order_list)) {
foreach ($order_list as $v) {
$voucher_order[$v['voucher_code']] = $v['order_id'];
$model->editVoucher(array('voucher_order_id' => $v['order_id']), array('voucher_code' => $v['voucher_code']));
}
}
}
Tpl::output('list', $list);
Tpl::output('voucherstate_arr', $model->getVoucherStateArray());
Tpl::output('show_page', $model->showpage(2));
$this->profile_menu('voucher_list');
Tpl::showpage('member_voucher.list');
}