本文整理匯總了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');
}