Browse Source

remove access callback

stanley-king 4 năm trước cách đây
mục cha
commit
9f71a4c805
2 tập tin đã thay đổi với 60 bổ sung3 xóa
  1. 57 0
      document/refill.sql
  2. 3 3
      helper/fcgi_server.php

+ 57 - 0
document/refill.sql

@@ -0,0 +1,57 @@
+
+
+-- auto-generated definition
+create table lrlz_merchant
+(
+    mchid           int auto_increment
+        primary key,
+    name            varchar(128)                null,
+    admin_id        int              default 0  null,
+    password        char(32)         default '' null,
+    last_login_ip   varchar(64)      default '' null,
+    last_login_time int(11) unsigned default 0  null,
+    ip_white_list   varchar(1024)    default '' null,
+    secure_key      varchar(64)      default '' null
+)
+    comment 'ToB 合作表' charset = utf8mb4;
+
+create table lrlz_merchant_price
+(
+    mprice_id  int auto_increment
+        primary key,
+    mchid      int                         not null,
+    card_types varchar(32)    default '1'  null comment '充值类型,以,号分隔开',
+    spec       decimal(10, 2) default 0.00 null,
+    price      decimal(10, 2) default 0.00 null
+);
+
+-- auto-generated definition
+create table lrlz_refill_order
+(
+    order_id         int                         not null
+        primary key,
+    order_sn         bigint                      null,
+    mchid            int                         null,
+    mch_order        varchar(32)                 null,
+    refill_amount    decimal(10, 2) default 0.00 null,
+    card_type        tinyint                     null,
+    card_no          bigint                      null,
+    idcard           varchar(32) charset latin1  null,
+    card_name        varchar(32)                 null,
+    notify_url       varchar(256) charset latin1 null,
+    channel_name     varchar(32) charset latin1  null,
+    mch_amount       decimal(10, 2)              null comment '充值机构花了多少钱',
+    channel_amount   decimal(10, 2)              null comment '通道扣了多少钱',
+    jd_no            varchar(32) charset latin1  null comment '京东单号',
+    ch_trade_no      varchar(48) charset latin1  null,
+    order_time       int                         null,
+    commit_time      int                         null,
+    notify_time      int                         null,
+    notify_state     tinyint        default 0    null,
+    mch_notify_state tinyint        default 0    null,
+    mch_notify_times int            default 0    null
+)
+    charset = utf8mb4;
+
+
+

+ 3 - 3
helper/fcgi_server.php

@@ -28,7 +28,7 @@ class fcgi_server
             'wxnotify.php','pub_wxnotify.php','alipay_notify_url.php','dispatch_notify.php','kdniao_notify.php',
             'cmbpay_notify.php','cmbpay_sign.php','wxauthor.php','api/wxLogin/index.php','api/wxLogin/callback.php',
             'signature.php',
-            'refill_suhc.php'
+            'refill_suhc.php','refill_beixt.php'
         ];
         $path = BASE_ROOT_PATH . '/mobile/';
         $file = str_replace($path,'',$file);
@@ -102,9 +102,8 @@ class fcgi_server
                 $this->parase_requri();
                 init_request();
                 init_cookie($_SERVER['HTTP_COOKIE']);
-
                 $file = request_helper::script_file();
-                session::instance()->start();
+
                 Log::record("member_id=" . session_helper::memberid(),Log::DEBUG);
                 if(file_exists($file))
                 {
@@ -119,6 +118,7 @@ class fcgi_server
                     }
                     else
                     {
+                        session::instance()->start();
                         if(!isset($_GET['act'])) {
                             $_GET['act'] = 'index';
                         }