Jelajahi Sumber

debug kdn notify

stanley-king 9 tahun lalu
induk
melakukan
1f980720a4

+ 1 - 1
core/framework/cache/cache.cacheredis.php

@@ -33,7 +33,7 @@ class Cacheredis extends Cache
     	}
     }
 
-    private function init_slaveinit_slave(){
+    private function init_slave(){
     	static $_cache;
     	if (isset($_cache)){
     		$this->handler = $_cache;

+ 3 - 1
crontab/control/queue.php

@@ -9,7 +9,9 @@
 */
 defined('InShopNC') or exit('Access Invalid!');
 ini_set('default_socket_timeout', -1);
-class queueControl extends BaseCronControl {
+
+class queueControl extends BaseCronControl
+{
 
     public function indexOp() {
         if (ob_get_level()) ob_end_clean();

+ 34 - 0
helper/goods_mutable.php

@@ -0,0 +1,34 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: stanley-king
+ * Date: 16/4/5
+ * Time: 上午11:58
+ */
+
+//储存一个商品易变的一些基本信息
+
+class goods_mutable
+{
+    private $mStorage;
+    private $mClick;
+    private $mSalenum;
+    private $mCollect;
+
+    public function __construct()
+    {
+    }
+
+    public function storege() {
+        return $this->mStorage;
+    }
+    public function click() {
+        return $this->mClick;
+    }
+    public function salenum() {
+        return $this->mSalenum;
+    }
+    public function collect() {
+        return $this->mCollect;
+    }
+}

+ 2 - 1
mobile/control/member_info.php

@@ -64,7 +64,8 @@ class member_infoControl extends mbMemberControl
         }
         if(isset($member_birthday))
         {
-            if($member_birthday = strftime ("%Y-%m-%d",$member_birthday)) {
+            $itm = intval($member_birthday);
+            if($itm > 0 && $member_birthday = strftime ("%Y-%m-%d",$member_birthday)) {
                 $update['member_birthday'] = $member_birthday;
             } else {
                 $update['member_birthday'] = NULL;

+ 4 - 0
mobile/kdniao_notify.php

@@ -6,6 +6,9 @@ require_once (BASE_DATA_PATH . '/logic/delivery.logic.php');
 $requestData = $_POST['RequestData'];  // 快递鸟数据
 $deliver_info = json_decode(urldecode($requestData));
 
+$x = urldecode($requestData);
+Log::record("kdniao_notify: post data={$x}",Log::DEBUG);
+
 Log::record("kdniao_notify: post data={$requestData}",Log::DEBUG);
 
 //数据不正确, 记录并退出
@@ -15,6 +18,7 @@ if ($deliver_info === false || empty($deliver_info))
 }
 else
 {
+    Log::record("start handle....",Log::DEBUG);
     // 订单sn号
     $order_sn = $deliver_info['Data']['CallBack'];