<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                本系統的公共函數在:application\common.php 以下列舉部分函數,具體用法及其他函數請參考源碼。 ## msectime >[success] 含義:獲取毫秒數 返回:返回當前的毫秒時間戳 ## get_client_ip >[success] 含義:獲取客戶端IP 返回:客戶端IP ## get_client_broswer >[success] 含義:判斷前端瀏覽器類型 返回:微信、支付寶 ## get_sn($type) >[success] 含義:根據類型生成編號 返回:訂單、售后單、支付單、商品編號、貨品編號等 | 參數 | 類型 | 含義 | | --- | --- |--- | | $type | string | 類型 | ## get_hash >[success] 含義:獲取hash值 返回:hash值 ## get_file_extension($filename) >[success] 含義:獲取文件擴展名 返回:txt、jpg | 參數 | 類型 | 含義 | | --- | --- |--- | | $filename | string | 文件名(帶路徑)| ## get_hash_dir >[success] 含義:獲取HASH目錄 返回:1b/74/eb ## mkdirs($dir,$mode) >[success] 含義:遞歸創建目錄 返回:true|false | 參數 | 類型 | 含義 | | --- | --- |--- | | $dir| string | 路徑名| | $mode| string | 權限值,例如:777| ## _sImage($image_id) >[success] 含義:返回圖片真實路徑 返回:https://images.gitee.com/uploads/images/2018/1018/184408_a1c0d706_8503.jpeg | 參數 | 類型 | 含義 | | --- | --- |--- | | $image_id| string | 圖片id | ## getRealUrl($url) >[success] 含義:相對地址轉換為絕對地址 返回:https://images.gitee.com/uploads/images/2018/1018/184408_a1c0d706_8503.jpeg | 參數 | 類型 | 含義 | | --- | --- |--- | | $url| string | 圖片相對地址 | ## format_mobile($mobile) >[success] 含義:格式化數據化手機號碼 返回:18530****53 | 參數 | 類型 | 含義 | | --- | --- |--- | | $mobile| string | 手機號| ## redirect_url >[success] 含義:獲取來源地址,如果沒有登陸的情況下,記錄來源url,并跳轉到登陸頁面 返回:來源地址 ## get_user_info($user_id,$field = 'mobile') >[success] 含義:獲取用戶信息,默認返回手機號 返回:手機號 | 參數 | 類型 | 含義 | | --- | --- |--- | | $user_id| int| 用戶user表ID| | $field | string| 要返回的字段| ## get_goods_info($goods_id,$field = 'name') >[success] 含義:獲取商品信息,默認返回商品名稱 返回:測試商品 | 參數 | 類型 | 含義 | | --- | --- |--- | | $goods_id| int| 商品goods表ID| | $field | string| 要返回的字段| ## get_user_id($mobile) >[success] 含義:根據手機號獲取用戶id 返回:用戶id | 參數 | 類型 | 含義 | | --- | --- |--- | | $mobile| number| 13184240161| ## get_operation_url($id) >[success] 含義:根據operation_id 取得鏈接地址 返回:鏈接地址 | 參數 | 類型 | 含義 | | --- | --- |--- | | $id| int| operation_id | ## getMoney($money) >[success] 含義:獲取轉換后的金額 返回:保留2位小數金額 | 參數 | 類型 | 含義 | | --- | --- |--- | | $money | float| 金額| ## get_payment_info($payment_code,$field) >[success] 含義:根據支付方式編碼取支付方式名稱等 返回:支付方式名稱等 | 參數 | 類型 | 含義 | | --- | --- |--- | | $payment_code| string| 支付方式編碼| | $field| string| 要返回的字段| ## get_logi_info($logi_code,$field) >[success] 含義:根據物流編碼取物流名稱等信息 返回:物流名稱 | 參數 | 類型 | 含義 | | --- | --- |--- | | $logi_code| string| 物流編碼 | | $field| string| 要返回的字段| ## get_area($area_id) >[success] 含義:根據地區id取省市區的信息 返回:省市區信息 | 參數 | 類型 | 含義 | | --- | --- |--- | | $area_id| int| 地區ID | ## error_code($code,$mini = false) >[success] 含義:根據錯誤碼返回錯誤信息 返回:錯誤信息 | 參數 | 類型 | 含義 | | --- | --- |--- | | $code| int| 錯誤碼 | | $mini | bool| 是否只返回錯誤信息 | ## delImage($image_id) >[success] 含義:根據圖片ID刪除圖片 返回:true|false | 參數 | 類型 | 含義 | | --- | --- |--- | | $image_id| string| 圖片id | ## getLabel($ids) >[success] 含義:查詢標簽 返回:array 標簽信息 | 參數 | 類型 | 含義 | | --- | --- |--- | | $ids| array| 圖片id | ## getLabelStyle($style) >[success] 含義:獲取標簽樣式 返回:標簽樣式 | 參數 | 類型 | 含義 | | --- | --- |--- | | $style| string| 標簽編碼 | ## getRealSize($size) >[success] 含義:單位自動轉換函數 返回:最終單位 | 參數 | 類型 | 含義 | | --- | --- |--- | | $size| number| 文件大小,單位B | ## convertUrlQuery($query) >[success] 含義:url參數轉換為數組 返回:數組 | 參數 | 類型 | 含義 | | --- | --- |--- | | $query| string| url參數 | ## load_wechat($type) >[success] 含義:獲取微信操作對象(單例模式) 返回:對象 | 參數 | 類型 | 含義 | | --- | --- |--- | | $type| string| 對象名稱| ## sendMessage($user_id, $code, $params) >[success] 含義:發送信息助手 返回:true|false | 參數 | 類型 | 含義 | | --- | --- |--- | | $user_id| int| 用戶ID | | $code| string| 短信模板編碼 | | $params| string| 參數 | ## bankCardNoFormat($cardNo) >[success] 含義:格式化銀行卡號 返回:返回格式化后銀行卡號,前四位和最后顯示原樣的,其他隱藏 | 參數 | 類型 | 含義 | | --- | --- |--- | | $cardNo| string| 銀行卡號 | ## getSetting($key) >[success] 含義:獲取配置信息 返回:string|array | 參數 | 類型 | 含義 | | --- | --- |--- | | $key| string| 配置參數 | ## getAddonsConfig($name) >[success] 含義:獲取插件配置信息 返回:array 插件配置信息 | 參數 | 類型 | 含義 | | --- | --- |--- | | $name | string| 插件名稱| ## get_manage_info($manage_id,$field = 'username') >[success] 含義:獲取管理員信息 返回:返回管理員信息,默認返回名稱 | 參數 | 類型 | 含義 | | --- | --- |--- | | $manage_id| int| 管理員ID| | $field | int| 要返回的字段| ## isInGroup($gid = 0, &$promotion_id = 0) >[success] 含義:判斷商品是否參加團購或秒殺并返回團購或秒殺id 返回:true|false | 參數 | 類型 | 含義 | | --- | --- |--- | | $gid | int| 商品ID| | $promotion_id | int| 返回團購或秒殺id| ## isMobile($mobile) >[success] 含義:判斷是否手機號 返回:true|false | 參數 | 類型 | 含義 | | --- | --- |--- | | $mobile| int| 手機號| ## secondConversion($second = 0) >[success] 含義:秒轉換為天,小時,分鐘 返回:X天X小時X分鐘 | 參數 | 類型 | 含義 | | --- | --- |--- | | $second | int| 秒|
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看