当前位置: 首页>>代码示例>>PHP>>正文


PHP order_goods函数代码示例

本文整理汇总了PHP中order_goods函数的典型用法代码示例。如果您正苦于以下问题:PHP order_goods函数的具体用法?PHP order_goods怎么用?PHP order_goods使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了order_goods函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     $c_mid = trim($payment['allpay_card24_account']);
     $log_id = $order['log_id'];
     $order_id = $order['order_sn'];
     $c_orderamount = $order['order_amount'];
     $c_returl = return_url(basename(__FILE__, '.php')) . "?log_id=" . $log_id;
     $c_returl = str_replace('respond', 'allpay_response', $c_returl);
     $key = trim($payment['allpay_card24_key']);
     $iv = trim($payment['allpay_card24_iv']);
     $goods = order_goods($order['order_id']);
     foreach ($goods as $good) {
         //先上架商品
         $product .= "#" . $good['goods_name'];
     }
     $product = substr($product, 1);
     $date = date('Y/m/d H:i:s');
     $desc = "Allpay_Ecshop_Module";
     $input_array = array('ChoosePayment' => 'Credit', 'ClientBackURL' => $GLOBALS['ecs']->url(), 'ItemName' => $product, 'MerchantID' => $c_mid, 'MerchantTradeDate' => $date, 'MerchantTradeNo' => $order_id, 'PaymentType' => 'aio', 'ReturnURL' => $c_returl, 'TotalAmount' => intval($c_orderamount), 'TradeDesc' => $desc, 'CreditInstallment' => 24, 'InstallmentAmount' => intval($c_orderamount));
     ksort($input_array);
     $checkvalue = "HashKey=" . $key . "&" . urldecode(http_build_query($input_array)) . "&HashIV=" . $iv;
     $checkvalue = urlencode($checkvalue);
     $checkvalue = strtolower($checkvalue);
     $checkvalue = md5($checkvalue);
     $gateway = "https://payment.allpay.com.tw/Cashier/AioCheckOut";
     //$gateway = "http://payment-stage.allpay.com.tw/Cashier/AioCheckOut";
     $def_url = '<form style="text-align:center;" method=post action="' . $gateway . '">';
     foreach ($input_array as $param => $value) {
         $def_url .= "<input type='hidden' name='{$param}' value='{$value}'>";
     }
     $def_url .= "<input type='hidden' name='CheckMacValue' value='" . $checkvalue . "'>";
     $def_url .= "<input type='submit' value='" . $GLOBALS['_LANG']['pay_button'] . "'>";
     $def_url .= "</form><br />";
     return $def_url;
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:38,代码来源:allpay_card24.php

示例2: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     $c_mid = trim($payment['allpay_alipay_account']);
     $log_id = $order['log_id'];
     $order_id = $order['order_sn'];
     $c_tel = trim($order['tel']);
     $c_email = trim($order['email']);
     $c_orderamount = $order['order_amount'];
     $c_returl = return_url(basename(__FILE__, '.php')) . "?log_id=" . $log_id;
     $c_returl = str_replace('respond', 'allpay_response', $c_returl);
     $c_name = trim($order['consignee']);
     $key = trim($payment['allpay_alipay_key']);
     $iv = trim($payment['allpay_alipay_iv']);
     $goods = order_goods($order['order_id']);
     $product = $qty = $price = "";
     foreach ($goods as $good) {
         //先上架商品
         $product .= "#" . $good['goods_name'];
         $qty .= "#" . $good['goods_number'];
         $price .= "#" . round($good['goods_price']);
     }
     $product = substr($product, 1);
     $qty = substr($qty, 1);
     $price = substr($price, 1);
     $date = date('Y/m/d H:i:s');
     $desc = "Allpay_Ecshop_Module";
     $input_array = array("AlipayItemCounts" => $qty, "AlipayItemName" => urlencode($product), "AlipayItemPrice" => $price, "ChoosePayment" => "Alipay", "Email" => $c_email, "ItemName" => $product, "MerchantID" => $c_mid, "MerchantTradeDate" => $date, "PaymentType" => "aio", "ReturnURL" => $c_returl, "PhoneNo" => $c_tel, "TotalAmount" => intval($c_orderamount), "TradeDesc" => $desc, "UserName" => $c_name, "MerchantTradeNo" => $order_id);
     ksort($input_array);
     $checkvalue = "HashKey={$key}&" . urldecode(http_build_query($input_array)) . "&HashIV={$iv}";
     $checkvalue = strtolower(urlencode($checkvalue));
     $checkvalue = md5($checkvalue);
     $input_array["CheckMacValue"] = $checkvalue;
     $gateway = "https://payment.allpay.com.tw/Cashier/AioCheckOut";
     //$gateway = "http://payment-stage.allpay.com.tw/Cashier/AioCheckOut";
     $def_url = '<form style="text-align:center;" method=post action="' . $gateway . '">';
     foreach ($input_array as $keys => $value) {
         $def_url .= "<input type='hidden' name='{$keys}' value='{$value}'>";
     }
     $def_url .= "<input type='submit' value='" . $GLOBALS['_LANG']['pay_button'] . "'>";
     $def_url .= "</form><br />";
     return $def_url;
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:45,代码来源:allpay_alipay.php

示例3: order_goods

 public function order_goods($order_id)
 {
     /* 订单商品 */
     $goods_list = order_goods($order_id);
     foreach ($goods_list as $key => $value) {
         $goods_list[$key]['market_price'] = price_format($value['market_price'], false);
         $goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
         $goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
     }
     return $goods_list;
 }
开发者ID:dlpc,项目名称:ecshop,代码行数:11,代码来源:check_order.php

示例4: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     //print_r($order);exit;
     $payment = get_payment('ecbank_pincodeibon');
     $c_mid = trim($payment['ecbank_pincodeibon_account']);
     $c_order = $order['log_id'];
     $c_od_sob = $order['order_sn'];
     $c_name = trim($order['consignee']);
     $c_address = trim($order['address']);
     $c_tel = trim($order['tel']);
     $c_post = trim($order['zipcode']);
     $c_email = trim($order['email']);
     $c_orderamount = $order['order_amount'];
     $c_ymd = date('Ymd', time());
     $c_moneytype = "0";
     $c_retflag = "1";
     $c_returl = return_url(basename(__FILE__, '.php'));
     $notifytype = "0";
     $c_language = $payment['ecbank_pincodeibon_language'];
     $c_memo1 = $order['log_id'];
     $c_memo2 = $order['log_id'];
     $key = trim($payment['ecbank_pincodeibon_checkcode']);
     $def_url = "";
     //開始綠界虛擬帳號取號
     $param = array('ecbank_gateway' => 'https://ecbank.com.tw/gateway.php', 'mer_id' => $c_mid, 'enc_key' => $key, 'od_sob' => $c_order, 'amt' => intval($c_orderamount), 'prd_desc' => $c_order, 'ok_url' => rawurlencode($c_returl));
     // 執行取號
     $strAuth = '';
     $nvpStr = 'payment_type=ibon' . '&od_sob=' . $param['od_sob'] . '&mer_id=' . $param['mer_id'] . '&enc_key=' . $param['enc_key'] . '&amt=' . $param['amt'] . '&prd_desc=' . $param['prd_desc'] . '&ok_url=' . $param['ok_url'];
     $temp = order_goods($order['order_id']);
     //判斷是否使用電子發票
     if ($payment['ecbank_pincodeibon_inv_active'] == "1") {
         $nvpStr .= "&inv_active=1";
         $nvpStr .= "&inv_mer_id=" . $payment['ecbank_pincodeibon_inv_mer_id'];
         $nvpStr .= "&inv_semail=" . $c_email;
         for ($i = 0; $i < count($temp); $i++) {
             $nvpStr .= "&prd_name[]=" . $temp[$i]['goods_name'];
             $nvpStr .= "&prd_qry[]=" . $temp[$i]['goods_number'];
             $nvpStr .= "&prd_price[]=" . intval($temp[$i]['goods_price']);
         }
         $nvpStr .= "&prd_name[]=運費";
         $nvpStr .= "&prd_qry[]=1";
         $nvpStr .= "&prd_price[]=" . $order['shipping_fee'];
     }
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $param['ecbank_gateway']);
     curl_setopt($ch, CURLOPT_VERBOSE, 1);
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_POST, 1);
     curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpStr);
     $strAuth = curl_exec($ch);
     if (curl_errno($ch)) {
         $strAuth = false;
     }
     curl_close($ch);
     //exit;
     parse_str($strAuth, $res);
     if (!isset($res['error']) || $res['error'] != '0') {
         $def_url = '取號錯誤(' . $res['error'] . ')';
     } else {
         //$def_url ='交易單號: '.$res['tsr'];
         $def_url .= '[統一超商7-Eleven]超商繳費代碼:(<font color=blue size=+2>' . $res['payno'] . '</font>)<br><br>';
         $def_url .= '<a href=http://www.ecbank.com.tw/expenses-ibon.htm target=_blank>統一超商7-Eleven ibon 門市操作步驟</a><br>';
         $def_url .= '請記下上列超商繳費代碼,至最近之統一超商7-Eleven便利商店,操作代碼繳費機台, 於列印出有調碼之繳款單後,至櫃台支付,<br>便可完成繳費,繳費之收據請留存以供備核,繳費之後才算完成購物流程';
         $def_url .= '<br><br>本線上金流機制採用&lt; <a href=http://www.ecbank.com.tw target=_blank>綠界科技 ECBank 線上支付平台</a> &gt;';
         //$def_url.='銀行帳戶:(<font color=blue size=+2>'.$res['vaccno'].'</font>)';
         $note = '綠界 ECBank 交易流水号:' . $res['tsr'];
         //order_paid($c_order, '0', $note);
         return $def_url;
     }
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:75,代码来源:ecbank_pincodeibon.php

示例5: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     //include_once(ROOT_PATH.'includes/iconv/cls_iconv.php');
     //$iconv = new Chinese(ROOT_PATH);
     $c_mid = trim($payment['gw_allpay6_account']);
     //$c_order	= $order['order_sn'];
     $c_order = $order['log_id'];
     $c_name = trim($order['consignee']);
     $c_address = trim($order['address']);
     $c_tel = trim($order['tel']);
     $c_post = trim($order['zipcode']);
     $c_email = trim($order['email']);
     $c_orderamount = $order['order_amount'];
     $c_ymd = date('Ymd', time());
     $c_moneytype = "0";
     $c_retflag = "1";
     $c_returl = return_url(basename(__FILE__, '.php'));
     $notifytype = "0";
     $c_language = $payment['gw_allpay6_language'];
     $c_memo1 = $order['log_id'];
     $c_memo2 = $order['log_id'];
     //$srcStr = $c_mid . $c_order . $c_orderamount . $c_ymd . $c_moneytype . $c_retflag . $c_returl . $c_paygate . $c_memo1 . $c_memo2 . $notifytype . $c_language . $c_pass;
     //$c_signstr	= md5($srcStr);
     if (is_numeric($payment['gw_allpay6_installment']) && $payment['gw_allpay6_installment'] > 0) {
         if ($order['pay_fee'] == 0) {
             //判斷尚未更新過手續費
             $c_orderamount = round($c_orderamount * (1 + $payment['gw_allpay6_installment']));
             $pay_button = "" . $GLOBALS['_LANG']['pay_button'] . "" . $GLOBALS['_LANG']['gw_allpay6_stage'] . "期 " . $payment['gw_allpay6_installment'] * 100 . "% 利率付款 總計金額:" . $c_orderamount . "元";
             $sql = 'UPDATE ' . $GLOBALS['ecs']->table('pay_log') . ' SET order_amount = ' . round($c_orderamount) . ' WHERE log_id = ' . $order['log_id'];
             $GLOBALS['db']->query($sql);
             $order_temp = array("order_amount" => $c_orderamount, "pay_fee" => round($c_orderamount) - round($order['order_amount']));
             update_order($order['order_id'], $order_temp);
         } else {
             $pay_button = "" . $GLOBALS['_LANG']['pay_button'] . "" . $GLOBALS['_LANG']['gw_allpay6_stage'] . "期 " . $payment['gw_allpay6_installment'] * 100 . "% 利率付款 總計金額:" . $c_orderamount . "元";
         }
     } else {
         $pay_button = "" . $GLOBALS['_LANG']['pay_button'] . "" . $GLOBALS['_LANG']['gw_allpay6_stage'] . "期零利率付款";
     }
     $def_url = '<br /><form style="text-align:center;" method=post action="https://credit.allpay.com.tw/form_Sc_to5_fn.php">';
     $def_url .= "<input type='hidden' name='client' value='" . $c_mid . "'>";
     $def_url .= "<input type='hidden' name='act' value='auth'>";
     $def_url .= "<input type='hidden' name='stage' value='" . $GLOBALS['_LANG']['gw_allpay6_stage'] . "'>";
     $def_url .= "<input type='hidden' name='od_sob' value='" . $c_order . "'>";
     $def_url .= "<input type='hidden' name='名稱' value='" . $c_name . "'>";
     $def_url .= "<input type='hidden' name='地址' value='" . $c_address . "'>";
     $def_url .= "<input type='hidden' name='電話' value='" . $c_tel . "'>";
     $def_url .= "<input type='hidden' name='email' value='" . $c_email . "'>";
     $def_url .= "<input type='hidden' name='amount' value='" . $c_orderamount . "'>";
     $def_url .= "<input type='hidden' name='時間' value='" . $c_ymd . "'>";
     $def_url .= "<input type='hidden' name='roturl' value='" . $c_returl . "'>";
     $temp = order_goods($order['order_id']);
     //判斷是否使用電子發票
     if ($payment['gw_ecpay3_inv_active'] == "1") {
         $def_url .= "<input type='hidden' name='inv_active' value='1'>";
         $def_url .= "<input type='hidden' name='inv_mer_id' value='" . $payment['gw_allpay6_inv_mer_id'] . "'>";
         $def_url .= "<input type='hidden' name='inv_semail' value='" . $c_email . "'>";
         for ($i = 0; $i < count($temp); $i++) {
             $def_url .= "<input type='hidden' name='prd_name[]' value='" . $temp[$i]['goods_name'] . "'>";
             $def_url .= "<input type='hidden' name='prd_qry[]' value='" . intval($temp[$i]['goods_number']) . "'>";
             $def_url .= "<input type='hidden' name='prd_price[]' value='" . intval($temp[$i]['goods_price']) . "'>";
         }
         $def_url .= "<input type='hidden' name='prd_name[]' value=運費>";
         $def_url .= "<input type='hidden' name='prd_qry[]' value=1>";
         $def_url .= "<input type='hidden' name='prd_price[]' value='" . intval($order['shipping_fee']) . "'>";
         $def_url .= "<input type='hidden' name='prd_name[]' value=手續費>";
         $def_url .= "<input type='hidden' name='prd_qry[]' value=1>";
     }
     if ($order['pay_fee'] == 0) {
         $def_url .= "<input type='hidden' name='prd_price[]' value='" . $order_temp['pay_fee'] . "'>";
     } else {
         $def_url .= "<input type='hidden' name='prd_price[]' value='" . $order['pay_fee'] . "'>";
     }
     $def_url .= "<input type='submit' value='" . $pay_button . "'>";
     $def_url .= "</form><br />";
     return $def_url;
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:79,代码来源:gw_allpay6.php

示例6: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     $c_mid = trim($payment['ecbank_vacc_account']);
     $c_order = $order['log_id'];
     $c_name = trim($order['consignee']);
     $c_address = trim($order['address']);
     $c_tel = trim($order['tel']);
     $c_post = trim($order['zipcode']);
     $c_email = trim($order['email']);
     $c_orderamount = $order['order_amount'];
     $c_ymd = date('Ymd', time());
     $c_moneytype = "0";
     $c_retflag = "1";
     $c_returl = return_url(basename(__FILE__, '.php'));
     $notifytype = "0";
     //$c_language	= $payment['ecbank_vacc_language'];
     $c_memo1 = $order['log_id'];
     $c_memo2 = $order['log_id'];
     $def_url = '';
     $key = trim($payment['ecbank_vacc_checkcode']);
     //開始綠界虛擬帳號取號
     $param = array('ecbank_gateway' => 'https://ecbank.com.tw/gateway.php', 'mer_id' => $c_mid, 'payment_type' => 'vacc', 'setbank' => 'ESUN', 'enc_key' => $key, 'od_sob' => $c_order, 'amt' => intval($c_orderamount), 'expire_day' => '7', 'ok_url' => rawurlencode($c_returl));
     // 執行取號
     $strAuth = '';
     $nvpStr = 'mer_id=' . $param['mer_id'] . '&payment_type=' . $param['payment_type'] . '&setbank=' . $param['setbank'] . '&enc_key=' . $param['enc_key'] . '&od_sob=' . $param['od_sob'] . '&amt=' . $param['amt'] . '&expire_day=' . $param['expire_day'] . '&ok_url=' . $param['ok_url'];
     $temp = order_goods($order['order_id']);
     //判斷是否使用電子發票
     if ($payment['ecbank_vacc_inv_active'] == "1") {
         $nvpStr .= "&inv_active=1";
         $nvpStr .= "&inv_mer_id=" . $payment['ecbank_vacc_inv_mer_id'];
         $nvpStr .= "&inv_semail=" . $c_email;
         $nvpStr .= "";
         $nvpStr .= "";
         $nvpStr .= "";
         for ($i = 0; $i < count($temp); $i++) {
             $nvpStr .= "&prd_name[]=" . $temp[$i]['goods_name'];
             $nvpStr .= "&prd_qry[]=" . $temp[$i]['goods_number'];
             $nvpStr .= "&prd_price[]=" . intval($temp[$i]['goods_price']);
         }
         $nvpStr .= "&prd_name[]=運費";
         $nvpStr .= "&prd_qry[]=1";
         $nvpStr .= "&prd_price[]=" . $order['shipping_fee'];
     }
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $param['ecbank_gateway']);
     curl_setopt($ch, CURLOPT_VERBOSE, 1);
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_POST, 1);
     curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpStr);
     $strAuth = curl_exec($ch);
     if (curl_errno($ch)) {
         print_r($strAuth);
         $strAuth = false;
         exit;
     }
     curl_close($ch);
     if ($strAuth) {
         parse_str($strAuth, $res);
         //print_r($strAuth);
         //print_r($res);
         if (!isset($res['error']) || $res['error'] != '0') {
             $def_url = "<acript>alert('取號錯誤')</script>";
         } else {
             $def_url .= '轉帳銀行代碼:(<font color=blue size=+2>' . $res['bankcode'] . '</font>)';
             $def_url .= '轉帳銀行帳戶:(<font color=blue size=+2>' . $res['vaccno'] . '</font>)';
             $def_url .= "<br>持玉山銀行金融卡轉帳可免付跨行交易手續費,其它銀行依該行跨行手續費規定扣繳<br><a href=https://netbank.esunbank.com.tw/webatm/> 玉山銀行 WEB-ATM https://netbank.esunbank.com.tw/webatm/</a>";
             $note = '綠界 ECBank交易流水号:' . $res['tsr'];
             //order_paid($c_order, '0', $note);
             return $def_url;
         }
     } else {
         $def_url = "取號失敗";
         return $def_url;
         //exit;
     }
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:81,代码来源:ecbank_vacc.php

示例7: order_goods

                break;
            case 2:
                $order['shipping_status'] = "已收货";
                break;
            case 3:
                $order['shipping_status'] = "备货中";
                break;
            case 4:
                $order['shipping_status'] = "已发货(部分商品)";
                break;
            case 5:
                $order['shipping_status'] = "发货中(处理分单)";
                break;
            case 6:
                $order['shipping_status'] = "已发货(部分商品)";
                break;
        }
        //获取订单中的商品
        $goods_list = order_goods($order['order_id']);
        $smarty->assign('goods_list', $goods_list);
        $kuaidi = new Express();
        $result = $kuaidi->getorder($order['shipping_name'], $order['invoice_no']);
        $smarty->assign('order', $order);
        $smarty->assign('kuaidi_list', $result['data']);
    } else {
        show_message('您没有权限查看此物流信息!');
    }
} else {
    Header("Location: index.php\n");
}
$smarty->display('kuaidi_list.dwt');
开发者ID:moonlight-wang,项目名称:feilun,代码行数:31,代码来源:kuaidi_list.php

示例8: action_order_detail

function action_order_detail()
{
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $_SESSION['user_id'];
    include_once ROOT_PATH . 'includes/lib_transaction.php';
    include_once ROOT_PATH . 'includes/lib_payment.php';
    include_once ROOT_PATH . 'includes/lib_order.php';
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0;
    /* 订单详情 */
    $order = get_order_detail($order_id, $user_id);
    /* 退换货插件 www.68ecshop.com增加 */
    $shipping_time = $db->getOne("SELECT shipping_time FROM " . $ecs->table('order_info') . " WHERE order_id = '{$order_id}'");
    $now_time = gmtime();
    $not_back = 0;
    if ($GLOBALS['_CFG']['tuihuan_days_fahuo'] > 0) {
        if (($now_time - $shipping_time) / 86400 < $GLOBALS['_CFG']['tuihuan_days_fahuo']) {
            $not_back = 1;
        }
    }
    if ($GLOBALS['_CFG']['tuihuan_days_qianshou'] > 0) {
        if (($now_time - $shipping_time) / 86400 > $GLOBALS['_CFG']['tuihuan_days_qianshou']) {
            $not_back = 1;
        }
    }
    $smarty->assign('not_back', $not_back);
    /* 退换货插件 www.68ecshop.com增加 */
    if ($order === false) {
        $err->show($_LANG['back_home_lnk'], './');
        exit;
    }
    if ($db->getOne("select shipping_code from " . $ecs->table('shipping') . " where shipping_id=" . $order['shipping_id']) == "tc_express") {
        $order['tc_express'] = 1;
        $ko_order_sn = $db->getOne("select invoice_no from " . $ecs->table('delivery_order') . " where order_id=" . $order_id);
        if ($ko_order_sn) {
            $kos_order_id = $db->getOne("select order_id from " . $ecs->table('kuaidi_order') . " where order_sn='" . $ko_order_sn . "'");
        }
        $sql = "select * from " . $ecs->table('kuaidi_order_status') . " where order_id='{$kos_order_id}'  order by status_id";
        $res_status = $db->query($sql);
        $have_shipping_info = 0;
        $shipping_info = "";
        while ($row_status = $db->fetchRow($res_status)) {
            if ($row_status['status_display'] == 1) {
                switch ($row_status['status_id']) {
                    case 1:
                        $shipping_info .= "您提交了订单,请等待确认。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 2:
                        $shipping_info .= "您的快件已经确认,等待快递员揽收。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 3:
                        $postman_id = $db->getOne("select postman_id from " . $ecs->table('kuaidi_order') . " where order_sn='" . $order['invoice_no'] . "'");
                        $postman_info = $db->getRow("select postman_name, mobile from " . $ecs->table('postman') . " where postman_id=" . $postman_id);
                        $shipping_info .= "您的快件正在派送,快递员:" . $postman_info['postman_name'] . ",电话:" . $postman_info['mobile'] . " (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 4:
                        $shipping_info .= "您的快件已经签收。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 5:
                        $shipping_info .= "您的快件已被拒收。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 6:
                        $shipping_info .= "您拒收的快件已被退回。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                    case 7:
                        $shipping_info .= "您的快件已经取消。 (" . local_date('Y-m-d H:i:s', $row_status['status_time']) . ")";
                        break;
                }
                $shipping_info .= "<br>";
                if ($row_status['status_id'] >= 1) {
                    $have_shipping_info++;
                }
            }
        }
        if ($have_shipping_info) {
            $result_content = $shipping_info;
        } else {
            $result_content = '抱歉,暂时还没有该运单的物流信息哦!';
        }
    }
    $smarty->assign('result_content', $result_content);
    /* 是否显示添加到购物车 */
    if ($order['extension_code'] != 'group_buy' && $order['extension_code'] != 'exchange_goods') {
        $smarty->assign('allow_to_cart', 1);
    }
    /* 订单商品 */
    $goods_list = order_goods($order_id);
    foreach ($goods_list as $key => $value) {
        $goods_list[$key]['market_price'] = price_format($value['market_price'], false);
        $goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
        $goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
        $sql_back = "SELECT bg.*, bo.back_type FROM " . $ecs->table('back_goods') . " AS bg " . " LEFT JOIN " . $ecs->table('back_order') . " AS bo " . " ON bg.back_id = bo.back_id " . " WHERE bo.order_id = " . $order_id . " AND bg.goods_id = " . $value['goods_id'] . " AND bg.product_id = " . $value['product_id'] . " AND bg.status_back < 6";
        $back_info = $db->getRow($sql_back);
        if (count($back_info['back_id']) > 0) {
            switch ($back_info['status_back']) {
//.........这里部分代码省略.........
开发者ID:seanguo166,项目名称:yinoos,代码行数:101,代码来源:user.php

示例9: action_order_detail

function action_order_detail()
{
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $GLOBALS['user_id'];
    include_once ROOT_PATH . 'includes/lib_transaction.php';
    include_once ROOT_PATH . 'includes/lib_payment.php';
    include_once ROOT_PATH . 'includes/lib_order.php';
    include_once ROOT_PATH . 'includes/lib_clips.php';
    include_once ROOT_PATH . 'kuaidi/kuaidi.php';
    $order_id = isset($_GET['order_id']) ? intval($_GET['order_id']) : 0;
    /* 订单详情 */
    $order = get_order_detail($order_id, $user_id);
    if ($order === false) {
        $GLOBALS['err']->show($_LANG['back_home_lnk'], './');
        exit;
    }
    /* 是否显示添加到购物车 */
    if ($order['extension_code'] != 'group_buy' && $order['extension_code'] != 'exchange_goods') {
        $smarty->assign('allow_to_cart', 1);
    }
    /* 订单商品 */
    $goods_list = order_goods($order_id);
    foreach ($goods_list as $key => $value) {
        $goods_list[$key]['market_price'] = price_format($value['market_price'], false);
        $goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
        $goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
    }
    /* 设置能否修改使用余额数 */
    if ($order['order_amount'] > 0) {
        if ($order['order_status'] == OS_UNCONFIRMED || $order['order_status'] == OS_CONFIRMED) {
            $user = user_info($order['user_id']);
            if ($user['user_money'] + $user['credit_line'] > 0) {
                $smarty->assign('allow_edit_surplus', 1);
                $smarty->assign('max_surplus', sprintf($_LANG['max_surplus'], $user['user_money']));
            }
        }
    }
    /* 未发货,未付款时允许更换支付方式 */
    if ($order['order_amount'] > 0 && $order['pay_status'] == PS_UNPAYED && $order['shipping_status'] == SS_UNSHIPPED) {
        $payment_list = available_payment_list(false, 0, true);
        /* 过滤掉当前支付方式和余额支付方式 */
        if (is_array($payment_list)) {
            foreach ($payment_list as $key => $payment) {
                if ($payment['pay_id'] == $order['pay_id'] || $payment['pay_code'] == 'balance') {
                    unset($payment_list[$key]);
                }
            }
        }
        $smarty->assign('payment_list', $payment_list);
    }
    /* 订单 支付 配送 状态语言项 */
    $order['order_status'] = $_LANG['os'][$order['order_status']];
    $order['pay_status'] = $_LANG['ps'][$order['pay_status']];
    $order['shipping_status'] = $_LANG['ss'][$order['shipping_status']];
    //快递跟踪
    $kuaidi = new Express();
    $result = $kuaidi->getorder($order['shipping_name'], $order['invoice']);
    $smarty->assign('kuaidi', $result['data'][0]);
    $smarty->assign('order', $order);
    $smarty->assign('goods_list', $goods_list);
    $smarty->display('user_transaction.dwt');
}
开发者ID:moonlight-wang,项目名称:feilun,代码行数:67,代码来源:user9-9.php

示例10: sprintf

//-- PROCESSOR
/*------------------------------------------------------ */
$cache_id = sprintf('%X', crc32($_REQUEST['id'] . '-' . $_CFG['lang']));
if (!$smarty->is_cached('xspace_show.dwt', $cache_id)) {
    /* 文章详情 */
    $article = get_article_info($article_id);
    if (empty($article)) {
        ecs_header("Location: ./\n");
        exit;
    }
    if (!empty($article['link']) && $article['link'] != 'http://' && $article['link'] != 'https://') {
        ecs_header("location:{$article['link']}\n");
        exit;
    }
    include_once ROOT_PATH . 'includes/lib_order.php';
    $order_goods_list = order_goods($article["order_id"]);
    foreach ($order_goods_list as $key => $value) {
        $order_goods_list[$key]['goods_thumb'] = get_goods_thumb($value['goods_id']);
        $order_goods_list[$key]['market_price'] = price_format($value['market_price'], false);
        $order_goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
        $order_goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
    }
    $smarty->assign('order_goods_list', $order_goods_list);
    $smarty->assign('article_categories', article_categories_tree($article_id));
    //文章分类树
    $smarty->assign('categories', get_categories_tree());
    // 分类树
    $smarty->assign('helps', get_shop_help());
    // 网店帮助
    $smarty->assign('top_goods', get_top10());
    // 销售排行
开发者ID:qgz,项目名称:ecshop,代码行数:31,代码来源:xspace_show.php

示例11: order_goods

     }
 }
 $smarty->assign('is_team', $is_team);
 $smarty->assign('order', $row);
 include_once ROOT_PATH . 'includes/lib_payment.php';
 include_once ROOT_PATH . 'includes/lib_order.php';
 /*
     $sql = "SELECT *  FROM " . $GLOBALS['hhs']->table('order_info') .
             " WHERE team_sign = '$team_sign' and team_first=1 ";
     $order=$db->getRow($sql);
     if ($order === false)
     {
         exit;
     }*/
 /* 订单商品 */
 $goods_list = order_goods($team_sign);
 foreach ($goods_list as $key => $value) {
     $goods_list[$key]['market_price'] = price_format($value['market_price'], false);
     $goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
     $goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
 }
 //参团的人
 $sql = "select u.user_name,u.uname,u.headimgurl,o.pay_time,o.team_first from " . $hhs->table('order_info') . " as o left join " . $hhs->table('users') . " as u on o.user_id=u.user_id where team_sign=" . $team_sign . " and team_status>0 order by order_id ";
 $team_mem = $db->getAll($sql);
 foreach ($team_mem as $k => $v) {
     $team_mem[$k]['date'] = local_date('Y-m-d H:i:s', $v['pay_time']);
 }
 $team_start = $team_mem[0]['pay_time'];
 $smarty->assign('team_start', $team_start);
 $smarty->assign('systime', gmtime());
 $smarty->assign('team_mem', $team_mem);
开发者ID:shiruolin,项目名称:hzzshop,代码行数:31,代码来源:share.php

示例12: action_chat

function action_chat()
{
    $user_id = $_SESSION['user_id'];
    $smarty = get_smarty();
    $ecs = get_ecs();
    $db = get_database();
    /**
     * 判断当前用户是为聊天系统的注册用户
     */
    $exist = check_of_username_exist($user_id);
    // 获取用户头像
    if (!empty($user_id)) {
        $sql = "select password, headimg from " . $ecs->table('users') . " where user_id = '{$user_id}'";
        $row = $db->getRow($sql);
        $headimg = $row['headimg'];
        $password = $row['password'];
        $smarty->assign('headimg', $headimg);
    }
    if (!$exist) {
        // 查询ECShop内用户信息
        $sql = 'select a.user_id, a.password, a.email, a.user_name from ' . $ecs->table('users') . ' AS a where a.user_id = "' . $user_id . '"';
        $user = $GLOBALS['db']->getRow($sql);
        if (empty($user)) {
            // 根据user_id未查找到任何用户信息
        }
        // 用户不存在,创建用户信息
        $username = $user_id;
        $password = $user['password'];
        $name = $user['user_name'];
        $email = $user['email'];
        $type = 10;
        $shop_id = -1;
        $result = create_of_user($username, $password, $name, $email, $type, $shop_id);
        if ($result) {
            // 创建成功
        } else {
            // 创建失败
        }
    }
    // 获取前端传来的商品编号、订单编号、店铺编号等
    // 商品编号则显示商品信息
    // 订单编号则显示订单信息
    // 店铺编号则显示店铺信息
    $goods_id = null;
    $supp_id = -1;
    $order_id = null;
    $customers = null;
    // 获取客服信息
    $tab_items = array();
    // 客服类型
    $cus_types = CUSTOMER_SERVICE;
    // 记录需要发给客服的URL
    if (!empty($_REQUEST['chat_goods_id'])) {
        /* 咨询商品信息 */
        $goods_id = $_REQUEST['chat_goods_id'];
        $goods = goods_info($goods_id);
        $smarty->assign('chat_goods', $goods);
        $smarty->assign('chat_goods_id', $goods_id);
        // 获取店铺信息
        $supp_id = null;
        $tab_items[] = array("id" => "chat_goods", "name" => "咨询商品");
        // 客服+售前
        $cus_types = CUSTOMER_SERVICE . ',' . CUSTOMER_PRE;
    }
    if (!empty($_REQUEST['chat_supp_id'])) {
        /* 店铺信息 */
        $supp_id = $_REQUEST['chat_supp_id'];
        $supp_info = get_dianpu_baseinfo($supp_id);
        $smarty->assign('supp_info', $supp_info);
        $smarty->assign('chat_supp_id', $supp_id);
        $tab_items[] = array("id" => "chat_supp", "name" => "店铺信息");
        // 客服+售前
        $cus_types = CUSTOMER_SERVICE . ',' . CUSTOMER_PRE;
    }
    if (!empty($_REQUEST['chat_order_id'])) {
        /* 咨询订单信息 */
        require 'includes/lib_order.php';
        $order_id = $_REQUEST['chat_order_id'];
        // 获取商品和店铺信息
        $goods_id = null;
        $supp_id = null;
        $order = order_info($order_id);
        $order['order_status_text'] = $GLOBALS['_LANG']['os'][$order['order_status']] . ',' . $GLOBALS['_LANG']['ps'][$order['pay_status']] . ',' . $GLOBALS['_LANG']['ss'][$order['shipping_status']];
        $order['goods_list'] = order_goods($order_id);
        $smarty->assign('chat_order', $order);
        $smarty->assign('chat_order_id', $order_id);
        $smarty->assign('chat_order_sn', $order['order_sn']);
        $tab_items[] = array("id" => "chat_order", "name" => "咨询订单");
        // 客服+售后
        $cus_types = CUSTOMER_SERVICE . ',' . CUSTOMER_AFTER;
    }
    if (true) {
        /* 最近订单列表 */
        require 'includes/lib_transaction_1.php';
        // 获取用户最近的5条订单列表
        $order_list = get_user_orders_1($user_id, 5, 0);
        // 所有客服忙碌状态,提示web端
        $smarty->assign('order_list', $order_list);
        $smarty->assign('order_count', count($order_list));
        $tab_items[] = array("id" => "chat_order_list", "name" => "最近订单");
//.........这里部分代码省略.........
开发者ID:seanguo166,项目名称:yinoos,代码行数:101,代码来源:chat.php

示例13: get_user_order_detail

 public static function get_user_order_detail($order_id)
 {
     include_once ROOT_PATH . 'includes/lib_transaction.php';
     include_once ROOT_PATH . 'includes/lib_payment.php';
     include_once ROOT_PATH . 'includes/lib_order.php';
     include_once ROOT_PATH . 'includes/lib_clips.php';
     global $db;
     $order_id = addslashes($order_id);
     $user_id = addslashes($_SESSION['user_id']);
     $res = array('code' => RES_SUCCSEE);
     /* 订单详情 */
     $order = get_order_detail($order_id, $user_id);
     if ($order === false) {
         $res['code'] = RES_FAIL;
         return json_encode($res);
     }
     /* 订单商品 */
     $goods_list = order_goods($order_id);
     //true 只返回支付的地址 不需要返回给我们其他代码
     $order_detail = get_order_detail($order_id, $user_id, true);
     foreach ($goods_list as $key => $value) {
         $goods_list[$key]['market_price'] = price_format($value['market_price'], false);
         $goods_list[$key]['goods_price'] = price_format($value['goods_price'], false);
         $goods_list[$key]['subtotal'] = price_format($value['subtotal'], false);
     }
     /* 设置能否修改使用余额数 */
     if ($order['order_amount'] > 0) {
         if ($order['order_status'] == OS_UNCONFIRMED || $order['order_status'] == OS_CONFIRMED) {
             $user = user_info($order['user_id']);
             if ($user['user_money'] + $user['credit_line'] > 0) {
                 $order['allow_edit_surplus'] = 1;
                 $order['max_surplus'] = sprintf($_LANG['max_surplus'], $user['user_money']);
             }
         }
     }
     //订单 支付 配送 状态语言项
     //$order['order_status'] = $_LANG['os'][$order['order_status']];
     //$order['pay_status'] = $_LANG['ps'][$order['pay_status']];
     //$order['shipping_status'] = $_LANG['ss'][$order['shipping_status']];
     $city_name = $db->getOne("select region_name from ship_region where region_id={$order['city']}");
     $order['cityName'] = $city_name;
     $order['districtName'] = MES_User::_get_distruct_name($order['city'], $order['district']);
     if ($order['fork_message']) {
         $order['fork_message'] = json_decode($order['fork_message']);
     }
     return json_encode(array('code' => RES_SUCCSEE, 'order' => $order, 'goods_list' => $goods_list, 'pay_online' => $order_detail['pay_online']));
 }
开发者ID:fromzyy2ann,项目名称:mescake,代码行数:47,代码来源:user.php

示例14: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     //print_r($order);exit;
     $payment = get_payment('ecbank_pinline');
     $c_mid = trim($payment['ecbank_pinline_account']);
     $c_order = $order['log_id'];
     $c_od_sob = $order['order_sn'];
     $c_name = trim($order['consignee']);
     $c_address = trim($order['address']);
     $c_tel = trim($order['tel']);
     $c_post = trim($order['zipcode']);
     $c_email = trim($order['email']);
     $c_orderamount = $order['order_amount'];
     $c_ymd = date('Ymd', time());
     $c_moneytype = "0";
     $c_retflag = "1";
     $c_returl = return_url(basename(__FILE__, '.php'));
     $notifytype = "0";
     $c_language = $payment['ecbank_pinline_language'];
     $c_memo1 = $order['log_id'];
     $c_memo2 = $order['log_id'];
     $key = trim($payment['ecbank_pinline_checkcode']);
     $def_url = "";
     $lineurl = "";
     //開始綠界產生超商繳款代碼
     $param = array('ecbank_gateway' => 'https://ecbank.com.tw/gateway.php', 'mer_id' => $c_mid, 'enc_key' => $key, 'od_sob' => $c_order, 'amt' => intval($c_orderamount), 'expire_day' => 3, 'ok_url' => rawurlencode($c_returl));
     // 執行取號
     $strAuth = '';
     $nvpStr = 'payment_type=barcode' . '&od_sob=' . $param['od_sob'] . '&mer_id=' . $param['mer_id'] . '&enc_key=' . $param['enc_key'] . '&amt=' . $param['amt'] . '&expire_day=' . $param['expire_day'] . '&ok_url=' . $param['ok_url'];
     $temp = order_goods($order['order_id']);
     //判斷是否使用電子發票
     if ($payment['ecbank_pinline_inv_active'] == "1") {
         $nvpStr .= "&inv_active=1";
         $nvpStr .= "&inv_mer_id=" . $payment['ecbank_pinline_inv_mer_id'];
         $nvpStr .= "&inv_semail=" . $c_email;
         $nvpStr .= "";
         $nvpStr .= "";
         $nvpStr .= "";
         for ($i = 0; $i < count($temp); $i++) {
             $nvpStr .= "&prd_name[]=" . $temp[$i]['goods_name'];
             $nvpStr .= "&prd_qry[]=" . $temp[$i]['goods_number'];
             $nvpStr .= "&prd_price[]=" . intval($temp[$i]['goods_price']);
         }
         $nvpStr .= "&prd_name[]=運費";
         $nvpStr .= "&prd_qry[]=1";
         $nvpStr .= "&prd_price[]=" . $order['shipping_fee'];
     }
     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL, $param['ecbank_gateway']);
     curl_setopt($ch, CURLOPT_VERBOSE, 1);
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($ch, CURLOPT_POST, 1);
     curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpStr);
     $strAuth = curl_exec($ch);
     if (curl_errno($ch)) {
         $strAuth = false;
     }
     curl_close($ch);
     //exit;
     parse_str($strAuth, $res);
     // 判斷取號結果
     if (!isset($res['error']) || $res['error'] != '0') {
         echo '取條碼錯誤';
     } else {
         $def_url = '條碼訂單編號: ' . $res['od_sob'] . '<br>';
         $lineurl = 'https://ecbank.com.tw/order/barcode_print.php?mer_id=' . $param['mer_id'] . '&tsr=' . $res['tsr'] . '';
         $def_url .= '請列印超商條碼帳單至超商繳費 [<a href=' . $lineurl . ' target=_blank>點此列印</a>]';
         $note = '綠界 ECBank 交易流水号:' . $res['tsr'];
         //order_paid($c_order, '0', $note);
         return $def_url;
     }
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:77,代码来源:ecbank_pinline.php

示例15: get_code

 /**
  * 提交函数
  */
 function get_code($order, $payment)
 {
     //include_once(ROOT_PATH.'includes/iconv/cls_iconv.php');
     //$iconv = new Chinese(ROOT_PATH);
     $c_mid = trim($payment['gw_ecpay_account']);
     //$c_order	= $order['order_sn'];
     $c_order = $order['log_id'];
     $c_name = trim($order['consignee']);
     $c_address = trim($order['address']);
     $c_tel = trim($order['tel']);
     $c_post = trim($order['zipcode']);
     $c_email = trim($order['email']);
     //$c_orderamount = trim(intval($order['order_amount']));
     $c_orderamount = $order['order_amount'];
     $c_ymd = date('Ymd', time());
     $c_moneytype = "0";
     $c_retflag = "1";
     $c_returl = return_url(basename(__FILE__, '.php'));
     $notifytype = "0";
     $c_language = $payment['gw_ecpay_language'];
     $c_memo1 = $order['log_id'];
     $c_memo2 = $order['log_id'];
     //$srcStr = $c_mid . $c_order . $c_orderamount . $c_ymd . $c_moneytype . $c_retflag . $c_returl . $c_paygate . $c_memo1 . $c_memo2 . $notifytype . $c_language . $c_pass;
     //$c_signstr	= md5($srcStr);
     $def_url = '<br /><form style="text-align:center;" method=post action="https://ecpay.com.tw/form_Sc_to5.php">';
     $def_url .= "<input type='hidden' name='client' value='" . $c_mid . "'>";
     $def_url .= "<input type='hidden' name='act' value='auth'>";
     $def_url .= "<input type='hidden' name='od_sob' value='" . $c_order . "'>";
     $def_url .= "<input type='hidden' name='名稱' value='" . $c_name . "'>";
     $def_url .= "<input type='hidden' name='地址' value='" . $c_address . "'>";
     $def_url .= "<input type='hidden' name='電話' value='" . $c_tel . "'>";
     $def_url .= "<input type='hidden' name='email' value='" . $c_email . "'>";
     $def_url .= "<input type='hidden' name='amount' value='" . $c_orderamount . "'>";
     $def_url .= "<input type='hidden' name='時間' value='" . $c_ymd . "'>";
     $def_url .= "<input type='hidden' name='roturl' value='" . $c_returl . "'>";
     $temp = order_goods($order['order_id']);
     //判斷是否使用電子發票
     if ($payment['gw_ecpay_inv_active'] == "1") {
         $def_url .= "<input type='hidden' name='inv_active' value='1'>";
         $def_url .= "<input type='hidden' name='inv_mer_id' value='" . $payment['gw_ecpay_inv_mer_id'] . "'>";
         $def_url .= "<input type='hidden' name='inv_semail' value='" . $c_email . "'>";
         for ($i = 0; $i < count($temp); $i++) {
             $def_url .= "<input type='hidden' name='prd_name[]' value='" . $temp[$i]['goods_name'] . "'>";
             $def_url .= "<input type='hidden' name='prd_qry[]' value='" . intval($temp[$i]['goods_number']) . "'>";
             $def_url .= "<input type='hidden' name='prd_price[]' value='" . intval($temp[$i]['goods_price']) . "'>";
         }
         $def_url .= "<input type='hidden' name='prd_name[]' value=運費>";
         $def_url .= "<input type='hidden' name='prd_qry[]' value=1>";
         $def_url .= "<input type='hidden' name='prd_price[]' value='" . intval($order['shipping_fee']) . "'>";
     }
     $def_url .= "<input type='hidden' name='roturl' value='" . $c_returl . "'>";
     $def_url .= "<input type='submit' value='" . $GLOBALS['_LANG']['pay_button'] . "'>";
     $def_url .= "</form><br />";
     return $def_url;
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:58,代码来源:gw_ecpay.php


注:本文中的order_goods函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。