{// 引入标签库 } function getCouponUserName($user_id) { $user_info = M("User")->getById($user_id); if($user_info) return $user_info['user_name']; else return L("NOT_USER_COUPON"); } function getCouponOrderSn($order_id) { $order_info = M("DealOrder")->getById($order_id); if($order_info) return $order_info['order_sn']; else return L("NOT_ORDER_COUPON"); } function getCouponIsNew($is_new) { return l("COUPON_IS_NEW_".$is_new); } function getCouponIsValid($is_valid) { return l("COUPON_IS_VALID_".$is_valid); } function getCouponConfirmAccount($account_id) { return M("SupplierAccount")->where("id=".$account_id)->getField("account_name"); }