wugg 6 місяців тому
батько
коміт
e8196add3f
3 змінених файлів з 11 додано та 4 видалено
  1. 1 1
      app/common.php
  2. 3 3
      app/cxinv/command/CheckInvoice.php
  3. 7 0
      config/cache.php

+ 1 - 1
app/common.php

@@ -147,7 +147,7 @@ if(!function_exists('validate_invoice_info')){
             return false;
         }
         if(in_array($data['invoice_type'],['normal','roll','toll','electronic','fully_digitalized_normal_electronic','fully_digitalized_special_electronic'])){
-            if(!isset($item['checkNumber'])||$item['checkNumber']==''){
+            if(!isset($item['check_code'])||$item['check_code']==''){
                 $return['code']=1004;
                 $return['message']='校验码不能为空';
                 return false;

+ 3 - 3
app/cxinv/command/CheckInvoice.php

@@ -131,7 +131,7 @@ class CheckInvoice extends Command
             'status'=>1,
             'inv_status'=>$this->taxStatus[$data['zfbz']]??0,
             'updatetime'=>date('Y-m-d H:i:s'),
-            'check_remark'=>'验票成功'
+            'remark'=>'验票成功'
         ]));
     }
 
@@ -152,10 +152,10 @@ class CheckInvoice extends Command
         return [];
     }
     protected function faild($id,$msg=''){
-       Invoice::where(['id'=>$id])->update(['status'=>5,'check_remark'=>$msg,'updatetime'=>date('Y-m-d H:i:s')]);
+       Invoice::where(['id'=>$id])->update(['status'=>5,'remark'=>$msg,'updatetime'=>date('Y-m-d H:i:s')]);
     }
     protected function lastUpdate($id){
-        Invoice::where(['id'=>$id])->update(['status'=>0,'check_remark'=>'验证失败,等待第二天验证', 'updatetime'=> date('Y-m-d H:i:s',strtotime('+1 day'))]);
+        Invoice::where(['id'=>$id])->update(['status'=>0,'remark'=>'验证失败,等待第二天验证', 'updatetime'=> date('Y-m-d H:i:s',strtotime('+1 day'))]);
     }
 
 }

+ 7 - 0
config/cache.php

@@ -31,6 +31,13 @@ return [
             'password' =>env('redis.password'),
             'timeout' => 3600
         ],
+         'redis2'=>[
+            'type' => 'Redis',
+            'host' => '123.249.88.98',
+            'port' => '6379',
+            'password' => 'caixiao369',
+            'timeout' => 3600
+        ]
         // 更多的缓存连接
     ],
 ];