$product_des = isset($_POST['creditrechargeNum']) ? '充值' . $_POST['creditrechargeNum'] * 100 . '积分' : '充值积分'; } else { } $product_url = $product_id > 0 ? get_permalink($product_id) : get_bloginfo('url'); $order_id = $_POST['order_id']; if (empty($product_id) || empty($order_id)) { wp_die('获取商品信息出错,请重试或联系卖家!'); } global $wpdb; $prefix = $wpdb->prefix; $table = $prefix . 'um_orders'; $order = $wpdb->get_row("select * from " . $table . " where product_id=" . $product_id . " and order_id=" . $order_id); if (!$order) { wp_die('获取订单出错,请重试或联系卖家!'); } $service = um_get_setting('alipay_sign_type', 'trade_create_by_buyer'); /**************************请求参数**************************/ //支付类型 $payment_type = "1"; //必填,不能修改 //服务器异步通知页面路径 $notify_url = Ali_URI . "/notify.php"; //需http://格式的完整路径,不能加?id=123这类自定义参数 //页面跳转同步通知页面路径 $return_url = Ali_URI . "/return.php"; //需http://格式的完整路径,不能加?id=123这类自定义参数,不能写成http://localhost/ //卖家支付宝帐户 $seller_email = $ali_email; //必填 //商户订单号 $out_trade_no = $order->order_id;
function create_the_vip_order() { $success = 0; $order_id = ''; $msg = ''; if (!is_user_logged_in()) { $msg = '请先登录'; } else { $user_info = wp_get_current_user(); $uid = $user_info->ID; $user_name = $user_info->display_name; $user_email = $user_info->user_email; $product_id = $_POST['product_id']; if ($product_id == -4) { $order_price = um_get_setting('life_mb_price', 120); $order_name = '终身会员'; } elseif ($product_id == -3) { $order_price = um_get_setting('annual_mb_price', 45); $order_name = '年费会员'; } elseif ($product_id == -2) { $order_price = um_get_setting('quarterly_mb_price', 12); $order_name = '季费会员'; } else { $order_price = um_get_setting('monthly_mb_price', 5); $order_name = '月费会员'; } $ratio = um_get_setting('aff_ratio', 10); $rewards = $order_price * $ratio / 100; $rewards = (int) $rewards; $insert = insert_order($product_id, $order_name, $order_price, 1, $order_price, 1, '', $uid, $_POST['aff_user_id'], $rewards, $user_name, $user_email, '', '', '', '', ''); if ($insert) { $success = 1; $order_id = $insert; if (!empty($user_email)) { store_email_template($order_id, '', $user_email); } } else { $msg = '创建订单失败,请重新再试'; } } $return = array('success' => $success, 'msg' => $msg, 'order_id' => $order_id); echo json_encode($return); exit; }
function um_authorize($code = '') { date_default_timezone_set('Asia/Shanghai'); $para = $code; $cache = get_option('_wp_um_authorize2'); if ($cache) { $auth = json_decode($cache); $now = time(); $time = $auth->time; if ($now - $time < 3600 * 24 * 2) { $order = $auth->order_id; $sn = $auth->sn; $key = $auth->key; } else { $order = $sn = $key = 0; } } else { $order = $sn = $key = 0; } if (empty($code)) { $code = 'e529pjwWH9j2mVLvbPBg0jE/I+U7RoM4hHdSXUDNeI2EVQtCKBML+9z6vzIf'; } //if(in_array($_SERVER['HTTP_HOST'],array('127.0.0.1','localhost'))) return; if (!authcode('e529pjwWH9j2mVLvbPBg0jE/I+U7RoM4hHdSXUDNeI2EVQtCKBML+9z6vzIf', 'DECODE', $key)) { $server = strtolower($_SERVER['HTTP_HOST']); $server_arr = explode('.', $server); if (count($server_arr) == 3) { $server = $server_arr[1] . '.' . $server_arr[2]; } $order = um_get_setting('order_id'); $sn = um_get_setting('sn'); $key = 0; $data = array('product_id' => 1392, 'domain' => $server, 'order' => $order, 'sn' => $sn, 'v' => UM_VER); if (um_curl_post('http://www.zhiyanblog.com/cdn/tinection/ping_new.php', $data)) { $return = um_curl_post('http://www.zhiyanblog.com/cdn/tinection/ping_new.php', $data); $return2 = json_decode($return); $active = $return2->success; $key = $return2->key; } else { $active = 0; } if ($active == 1) { $value = json_encode(array('order_id' => $order, 'sn' => $sn, 'key' => $key, 'time' => time())); update_option('_wp_um_authorize2', $value); //set_transient( 'um_authorize', $value , current_time('mysql'), 3600*24*5 ); if (!empty($para)) { eval(base64_decode(authcode($code, 'DECODE', $key))); } else { return 1; } } else { $value = json_encode(array('order_id' => '', 'sn' => '', 'key' => '', 'time' => time())); update_option('_wp_um_authorize2', $value); return 0; } } else { if (!empty($para)) { eval(base64_decode(authcode($code, 'DECODE', $key))); } else { return 1; } } }
/** * Main Template of Ucenter & Market WordPress Plugin * * @package Ucenter & Market * @version 1.0 * @date 2015.4.1 * @author Zhiyan <*****@*****.**> * @site Zhiyanblog <www.zhiyanblog.com> * @copyright Copyright (c) 2015-2015, Zhiyan * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link http://www.zhiyanblog.com/wordpress-plugin-ucenter-and-market.html **/ function um_loginbox() { ?> <div class="overlay-login"></div> <div id="sign" class="um_sign"> <div class="part loginPart"> <form id="login" action="<?php echo get_option('home'); ?> /wp-login.php" method="post" novalidate="novalidate"> <?php if (get_option('users_can_register') == 1) { ?> <div id="register-active" class="switch"><i class="fa fa-toggle-on"></i>切换注册</div><?php } ?> <h3>登录<p class="status"></p></h3> <p> <label class="icon" for="username"><i class="fa fa-user"></i></label> <input class="input-control" id="username" type="text" placeholder="请输入用户名" name="username" required="" aria-required="true"> </p> <p> <label class="icon" for="password"><i class="fa fa-lock"></i></label> <input class="input-control" id="password" type="password" placeholder="请输入密码" name="password" required="" aria-required="true"> </p> <p class="safe"> <label class="remembermetext" for="rememberme"><input name="rememberme" type="checkbox" checked="checked" id="rememberme" class="rememberme" value="forever">记住我的登录</label> <a class="lost" href="<?php echo get_option('home'); ?> /wp-login.php?action=lostpassword"><?php _e('忘记密码 ?', 'tinection'); ?> </a> </p> <p> <input class="submit" type="submit" value="登录" name="submit"> </p> <a class="close"><i class="fa fa-times"></i></a> <input type="hidden" id="security" name="security" value="<?php echo wp_create_nonce('security_nonce'); ?> "> <input type="hidden" name="_wp_http_referer" value="<?php echo $_SERVER['REQUEST_URI']; ?> "> </form> <?php if (um_get_setting('um_open_qq') || um_get_setting('um_open_weibo')) { ?> <div class="other-sign"> <p>您也可以使用第三方帐号快捷登录</p> <?php if (um_get_setting('um_open_qq')) { ?> <div><a class="qqlogin" href="<?php echo home_url('/?connect=qq&action=login&redirect=' . urlencode(um_get_redirect_uri())); ?> "><i class="fa fa-qq"></i><span><?php _e('Q Q 登 录', 'tinection'); ?> </span></a></div> <?php } ?> <?php if (um_get_setting('um_open_weibo')) { ?> <div><a class="weibologin" href="<?php echo home_url('/?connect=weibo&action=login&redirect=' . urlencode(um_get_redirect_uri())); ?> "><i class="fa fa-weibo"></i><span><?php _e('微 博 登 录', 'tinection'); ?> </span></a></div> <?php } ?> </div> <?php } ?> </div> <div class="part registerPart"> <form id="register" action="<?php bloginfo('url'); ?> /wp-login.php?action=register" method="post" novalidate="novalidate"> <div id="login-active" class="switch"><i class="fa fa-toggle-off"></i>切换登录</div> <h3>注册<p class="status"></p></h3> <p> <label class="icon" for="user_name"><i class="fa fa-user"></i></label> <input class="input-control" id="user_name" type="text" name="user_name" placeholder="输入英文用户名" required="" aria-required="true"> </p> <p> <label class="icon" for="user_email"><i class="fa fa-envelope"></i></label> <input class="input-control" id="user_email" type="email" name="user_email" placeholder="输入常用邮箱" required="" aria-required="true"> </p> <p> <label class="icon" for="user_pass"><i class="fa fa-lock"></i></label> <input class="input-control" id="user_pass" type="password" name="user_pass" placeholder="密码最小长度为6" required="" aria-required="true"> </p> <p> <label class="icon" for="user_pass2"><i class="fa fa-retweet"></i></label> <input class="input-control" type="password" id="user_pass2" name="user_pass2" placeholder="再次输入密码" required="" aria-required="true"> </p> <p id="captcha_inline"> <input class="input-control inline" type="text" id="um_captcha" name="um_captcha" placeholder="输入验证码" required> <img src="<?php echo UM_URI . '/static/img/captcha-clk.png'; ?> " class="captcha_img inline" title="点击刷新验证码"> <input class="submit inline" type="submit" value="注册" name="submit"> </p> <a class="close"><i class="fa fa-times"></i></a> <input type="hidden" id="user_security" name="user_security" value="<?php echo wp_create_nonce('user_security_nonce'); ?> "><input type="hidden" name="_wp_http_referer" value="<?php echo $_SERVER['REQUEST_URI']; ?> "> </form> </div> </div> <?php }
<tr> <td>' . $record->time . '</td> <td>' . $record->money . '</td> <td>' . $record->balance . '</td> <td>' . um_withdraw_status_output($record->status, $record->id) . '</td> </tr>'; } } else { $item_html .= '<tr><td colspan=4 style="text-align:left;">没有提现记录</td></tr>'; } $item_html .= '</tbody></table></div>'; } if ($currency == 'cash' && $curauth->ID == $current_user->ID) { $item_html .= '<div id="withdraw">'; if ($left < um_get_setting('aff_discharge_lowest', 100)) { $item_html .= '<p>' . $curauth->display_name . ',你当前账户推广余额低于' . um_get_setting('aff_discharge_lowest', 100) . '元最低提现值,暂不能申请提现</p>'; } else { $item_html .= '<div class="form-inline"><div class="form-group"><div class="input-group"><div class="input-group-addon">提现数额</div><input class="form-control" type="text" name="withdrawNum" id="withdrawNum" value="' . sprintf('%0.2f', $left) . '" aria-required="true" required=""></div></div><button class="btn btn-default" type="submit" id="withdrawSubmit" style="margin-left:10px;">申请提现</button></div>'; } $item_html .= '</div>'; } $item_html .= '</div>'; if ($pages > 1) { $item_html .= '<li class="tip">' . sprintf(__('第 %1$s 页,共 %2$s 页,每页显示 %3$s 条。', 'um'), $paged, $pages, $number) . '</li>'; } echo $item_html . '</div>'; echo um_pager($paged, $pages); } } ?>
function um_product_info_callback($post) { // 添加安全字段验证 wp_nonce_field('um_meta_box', 'um_meta_box_nonce'); $switch = get_post_meta($post->ID, 'pay_switch', true); $currency = get_post_meta($post->ID, 'pay_currency', true); $price = get_post_meta($post->ID, 'product_price', true); $amount = get_post_meta($post->ID, 'product_amount', true); $vip_discount = json_decode(get_post_meta($post->ID, 'product_vip_discount', true), true); $vip_discount = empty($vip_discount) ? 1 : $vip_discount; $vip_discount1 = isset($vip_discount['product_vip1_discount']) ? $vip_discount['product_vip1_discount'] : um_get_setting('monthly_mb_disc', 0.95); $vip_discount2 = isset($vip_discount['product_vip2_discount']) ? $vip_discount['product_vip2_discount'] : um_get_setting('quarterly_mb_disc', 0.9); $vip_discount3 = isset($vip_discount['product_vip3_discount']) ? $vip_discount['product_vip3_discount'] : um_get_setting('annual_mb_disc', 0.85); $vip_discount4 = isset($vip_discount['product_vip4_discount']) ? $vip_discount['product_vip4_discount'] : um_get_setting('life_mb_disc', 0.75); $coupon_code_support = get_post_meta($post->ID, 'product_coupon_code_support', true) ? (int) get_post_meta($post->ID, 'product_coupon_code_support', true) : 0; $coupon_discount = get_post_meta($post->ID, 'product_coupon_discount', true); $coupon_discount = empty($coupon_discount) ? 1 : $coupon_discount; $discount_begin_date = get_post_meta($post->ID, 'product_discount_begin_date', true); $discount_period = get_post_meta($post->ID, 'product_discount_period', true); $download_links = get_post_meta($post->ID, 'product_download_links', true); $pay_content = get_post_meta($post->ID, 'product_pay_content', true); if (get_post_type() == 'store') { ?> <p style="clear:both;font-weight:bold;"> <?php echo sprintf(__('此商品购买按钮快捷插入短代码为[product id="%1$s"][/product]', 'um'), $post->ID); ?> </p> <?php } if (get_post_type() == 'post') { ?> <p style="clear:both;font-weight:bold;border-bottom:1px solid #ddd;padding-bottom:8px;"> <?php _e('开关', 'um'); ?> </p> <p style="width:20%;float:left;"><?php _e('是否开启本文章付费资源支持', 'um'); ?> <select name="pay_switch"> <option value="0" <?php if ($switch != 1) { echo 'selected="selected"'; } ?> ><?php _e('关闭', 'um'); ?> </option> <option value="1" <?php if ($switch == 1) { echo 'selected="selected"'; } ?> ><?php _e('开启', 'um'); ?> </option> </select> </p> <?php } ?> <p style="clear:both;font-weight:bold;border-bottom:1px solid #ddd;padding-bottom:8px;"> <?php _e('基本信息', 'um'); ?> </p> <p style="width:20%;float:left;"><?php _e('选择支付币种', 'um'); ?> <select name="pay_currency"> <option value="0" <?php if ($currency != 1) { echo 'selected="selected"'; } ?> ><?php _e('积分', 'um'); ?> </option> <option value="1" <?php if ($currency == 1) { echo 'selected="selected"'; } ?> ><?php _e('人民币', 'um'); ?> </option> </select> </p> <p style="width:20%;float:left;"><?php _e('商品售价 ', 'um'); ?> <input name="product_price" class="small-text code" value="<?php echo sprintf('%0.2f', $price); ?> " style="width:80px;height: 28px;"> </p> <p style="width:20%;float:left;"><?php _e('商品数量 ', 'um'); ?> <input name="product_amount" class="small-text code" value="<?php echo (int) $amount; ?> " style="width:80px;height: 28px;"> </p> <p style="width:40%;float:left;"><?php _e('是否支持优惠码,仅限现金商品 ', 'um'); ?> <select name="product_coupon_code_support"> <option value="0" <?php if ($coupon_code_support !== 1) { echo 'selected="selected"'; } ?> ><?php _e('不支持', 'um'); ?> </option> <option value="1" <?php if ($coupon_code_support === 1) { echo 'selected="selected"'; } ?> ><?php _e('支持', 'um'); ?> </option> </select> </p> <p style="clear:both;font-weight:bold;border-bottom:1px solid #ddd;padding-bottom:8px;"> <?php _e('VIP会员折扣(1.00代表原价)', 'um'); ?> </p> <p style="width:33%;float:left;clear:left;"><?php _e('VIP月费会员折扣 ', 'um'); ?> <input name="product_vip1_discount" class="small-text code" value="<?php echo sprintf('%0.2f', $vip_discount1); ?> " style="width:80px;height: 28px;"> </p> <p style="width:33%;float:left;"><?php _e('VIP季费会员折扣 ', 'um'); ?> <input name="product_vip2_discount" class="small-text code" value="<?php echo sprintf('%0.2f', $vip_discount2); ?> " style="width:80px;height: 28px;"> </p> <p style="width:33%;float:left;"><?php _e('VIP年费会员折扣 ', 'um'); ?> <input name="product_vip3_discount" class="small-text code" value="<?php echo sprintf('%0.2f', $vip_discount3); ?> " style="width:80px;height: 28px;"> </p> <p style="width:33%;float:left;"><?php _e('VIP终身会员折扣 ', 'um'); ?> <input name="product_vip4_discount" class="small-text code" value="<?php echo sprintf('%0.2f', $vip_discount4); ?> " style="width:80px;height: 28px;"> </p> <p style="clear:both;font-weight:bold;border-bottom:1px solid #ddd;padding-bottom:8px;"> <?php _e('促销信息', 'um'); ?> </p> <p style="width:20%;float:left;clear:left;"><?php _e('优惠促销折扣 ', 'um'); ?> <input name="product_coupon_discount" class="small-text code" value="<?php echo sprintf('%0.2f', $coupon_discount); ?> " style="width:80px;height: 28px;"> </p> <p style="width:35%;float:left;"><?php _e('优惠开始日期(格式2015-01-01) ', 'um'); ?> <input name="product_discount_begin_date" class="small-text code" value="<?php echo $discount_begin_date; ?> " style="width:100px;height:28px;"> </p> <p style="width:40%;float:left;"><?php _e('优惠期,为0或为空则不启用优惠 ', 'um'); ?> <input name="product_discount_period" class="small-text code" value="<?php echo (int) $discount_period; ?> " style="width:60px;height: 28px;"><?php _e(' 天', 'um'); ?> </p> <p style="clear:both;font-weight:bold;border-bottom:1px solid #ddd;padding-bottom:8px;"> <?php _e('付费内容', 'um'); ?> </p> <p style="clear:both;"><?php _e('付费查看下载链接,一行一个,每个资源格式为资源名|资源下载链接|密码', 'um'); ?> </p> <textarea name="product_download_links" rows="5" class="large-text code"><?php echo $download_links; ?> </textarea> <p style="clear:both;"><?php _e('付费查看的内容信息', 'um'); ?> </p> <textarea name="product_pay_content" rows="5" class="large-text code"><?php echo $pay_content; ?> </textarea> <?php }
function um_daily_sign_callback() { date_default_timezone_set('Asia/Shanghai'); $msg = ''; $success = 0; $credits = 0; if (!is_user_logged_in()) { $msg = '请先登录'; } else { $uid = get_current_user_id(); $date = date('Y-m-d H:i:s', time()); $sign_date_meta = get_user_meta($uid, 'um_daily_sign', true); $sign_date = date('Y-m-d', strtotime($sign_date_meta)); $now_date = date('Y-m-d', time()); if ($sign_date != $now_date) { update_user_meta($uid, 'um_daily_sign', $date); $credits = um_get_setting('daily_sign_credit', 10); $credit_msg = '每日签到赠送' . $credits . '积分'; update_um_credit($uid, $credits, 'add', 'um_credit', $credit_msg); $success = 1; $msg = '签到成功,获得' . $credits . '积分'; } else { $success = 0; $credits = 0; $msg = '今日已签到'; } } $return = array('msg' => $msg, 'success' => $success, 'credits' => $credits); echo json_encode($return); exit; }
function um_open_login($openid = '', $token = '', $type = 'qq', $name = '') { $cookie_name = um_redirect_cookie_name(); $redirect = isset($_COOKIE[$cookie_name]) ? urldecode($_COOKIE[$cookie_name]) : home_url(); $die_title = '请重试或报告管理员'; $redirect_text = '<p>' . $die_title . ' </p><p><a href="' . $redirect . '">点击返回</a></p>'; $user_ID = get_current_user_id(); $id_field = 'um_' . $type . '_openid'; $token_field = 'um_' . $type . '_access_token'; global $wpdb; $user_exist = $wpdb->get_var("SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key='{$id_field}' AND meta_value='{$openid}' "); if (is_user_logged_in()) { if (isset($user_exist) && (int) $user_exist > 0) { wp_die($name . ' 已有绑定账号,请绑定其他账号或先解除原有账号。 ' . $redirect_text, $die_title); } else { update_user_meta($user_ID, $id_field, $openid); update_user_meta($user_ID, $token_field, $token); header('Location:' . $redirect); exit; } } else { if (isset($user_exist) && (int) $user_exist > 0) { $insert_user_id = $user_exist; $is_new_user = 0; } else { $user_login = strtoupper(substr($type, 0, 1)) . $openid; $insert_user_id = wp_insert_user(array('user_login' => $user_login, 'nickname' => $name, 'display_name' => $name, 'user_pass' => wp_generate_password())); $is_new_user = 1; } if (is_wp_error($insert_user_id)) { wp_die('登录失败! ' . $redirect_text, $die_title); } else { update_user_meta($insert_user_id, $id_field, $openid); update_user_meta($insert_user_id, $token_field, $token); if ($is_new_user) { update_user_meta($insert_user_id, 'um_avatar', $type); wp_update_user(array('ID' => $insert_user_id, 'role' => um_get_setting('um_open_role'))); add_um_message($insert_user_id, 'unread', current_time('mysql'), __('请完善账号信息', 'um'), sprintf(__('欢迎来到%1$s,请<a href="%2$s">完善资料</a>,其中电子邮件尤为重要,许多信息都将通过电子邮件通知您!', 'um'), get_bloginfo('name'), admin_url('profile.php'))); } update_user_meta($insert_user_id, 'um_latest_login', current_time('mysql')); wp_set_current_user($insert_user_id, $user_login); wp_set_auth_cookie($insert_user_id); do_action('wp_login', $user_login); header('Location:' . $redirect); exit; } } }
* @site Zhiyanblog <www.zhiyanblog.com> * @copyright Copyright (c) 2015-2015, Zhiyan * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link http://www.zhiyanblog.com/wordpress-plugin-ucenter-and-market.html **/ get_header(); ?> <!-- Main Wrap --> <div id="main-wrap"> <div id="single-blog-wrap" class="container shop"> <div class="area"> <!-- Content --> <div class="product-content"> <div class="breadcrumb"> <a href="<?php echo get_bloginfo('url') . '/' . um_get_setting('store_archive_slug', 'store'); ?> "><?php _e('商店', 'um'); ?> </a> <i class="fa fa-angle-right"></i> <span><?php echo get_the_term_list($post, 'products_category', '', '|'); ?> </span> </div> <?php while (have_posts()) { the_post(); ?> <article id="<?php echo 'product-' . $post->ID;
function um_setting_active_page() { settings_errors(); $order = um_get_setting('order'); $sn = um_get_setting('sn'); ?> <div class="wrap"> <form action="options.php" method="POST"> <?php settings_fields('ucenter_market_group'); ?> <?php settings_errors(); $labels = um_get_option_labels(); extract($labels); ?> <?php foreach ($sections as $section_name => $section) { ?> <div id="tab-<?php echo $section_name; ?> " class="div-tab <?php if ($section_name != 'auth') { echo 'hidden'; } ?> "> <?php um_option_do_settings_section($option_page, $section_name); ?> </div> <?php } ?> <input type="hidden" name="<?php echo $option_name; ?> [current_tab]" id="current_tab" value="" /> <?php submit_button(); ?> </form> </div> <?php }
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 * 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 * 提示:如何获取安全校验码和合作身份者id * 1.用您的签约支付宝账号登录支付宝网站(www.alipay.com) * 2.点击“商家服务”(https://b.alipay.com/order/myorder.htm) * 3.点击“查询合作者身份(pid)”、“查询安全校验码(key)” * 安全校验码查看时,输入支付密码后,页面呈灰色的现象,怎么办? * 解决方法: * 1、检查浏览器配置,不让浏览器做弹框屏蔽设置 * 2、更换浏览器或电脑,重新登录查询。 */ require_once dirname(__FILE__) . "/../../../../wp-load.php"; define('Ali_URI', UM_URI . '/alipay'); date_default_timezone_set('Asia/Shanghai'); $ali_partner = um_get_setting('alipay_id'); $ali_key = um_get_setting('alipay_key'); if (empty($ali_partner) || empty($ali_key)) { wp_die('支付宝商家认证信息为空!'); } //↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ //合作身份者id,以2088开头的16位纯数字 $alipay_config['partner'] = $ali_partner; //安全检验码,以数字和字母组成的32位字符 $alipay_config['key'] = $ali_key; //↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ //签名方式 不需修改 $alipay_config['sign_type'] = strtoupper('MD5'); //字符编码格式 目前支持 gbk 或 utf-8 $alipay_config['input_charset'] = strtolower('utf-8'); //ca证书路径地址,用于curl中ssl校验 //请保证cacert.pem文件在当前文件夹目录中
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link http://www.zhiyanblog.com/wordpress-plugin-ucenter-and-market.html **/ get_header(); ?> <!-- Main Wrap --> <div id="main-wrap"> <div class="sub-billboard billboard shopping"> <div class="wrapper"> <div class="inner"> <h1><?php echo um_get_setting('store_archive_title', 'WordPress商店'); ?> </h1> <p><?php echo um_get_setting('store_archive_subtitle', 'Theme - Service - Resource'); ?> </p> </div> </div> </div> <div class="container shop centralnav"> <div id="guide" class="navcaret"> <div class="group"> <?php wp_nav_menu(array('theme_location' => 'shopcatbar', 'container' => '', 'menu_id' => '', 'menu_class' => 'clr', 'depth' => '1', 'fallback_cb' => '')); ?> </div> </div> <div id="goodslist" class="goodlist" role="main"> <?php