dever hace 6 años
padre
commit
66846c674d
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 1
      journal/database/order.php
  2. 2 1
      journal/lib/Pay.php

+ 1 - 1
journal/database/order.php

@@ -480,7 +480,7 @@ return array
             # 匹配的正则或函数 选填项
             # 匹配的正则或函数 选填项
             'option' => array
             'option' => array
             (
             (
-                'code' => array('yes', '=""'),
+                'code' => array('yes', '='),
                 'status' => 'yes',
                 'status' => 'yes',
                 'type' => 'yes',
                 'type' => 'yes',
                 'state' => 1,
                 'state' => 1,

+ 2 - 1
journal/lib/Pay.php

@@ -9,10 +9,11 @@ class Pay
 
 
     public function go_api()
     public function go_api()
     {
     {
+        $where['code'] = 'null';
         $where['type'] = 3;
         $where['type'] = 3;
         $where['status'] = 2;
         $where['status'] = 2;
         $data = Dever::db('journal/order')->getUnCode($where);
         $data = Dever::db('journal/order')->getUnCode($where);
-
+        echo Dever::sql();
         if ($data) {
         if ($data) {
             print_r($data);die;
             print_r($data);die;
             foreach ($data as $k => $v) {
             foreach ($data as $k => $v) {