wugg 2 years ago
parent
commit
db1c501f64
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/admin/controller/Purch.php
  2. 1 1
      app/txx/middleware/CheckAuth.php

+ 2 - 2
app/admin/controller/Purch.php

@@ -700,9 +700,9 @@ class Purch extends Base
 
 
                 foreach ($cgdNo as $vlue) {
-					$isreturn = cgd_sale_return($cgdNo);
+					$isreturn = cgd_sale_return($vlue);
 			        if($isreturn){
-			          throw new Exception("{$cgdNo}关联销售单存在退货单正在进行");
+			          throw new Exception("{$vlue}关联销售单存在退货单正在进行");
 			        }
                     if($status == 1 && $uid != $supplier_cgderid[$info[$vlue]['supplierNo']]) throw new Exception('只能由供应商负责人来操作');//与供应商确认的这个操作,只能由供应商负责人来操作
 

+ 1 - 1
app/txx/middleware/CheckAuth.php

@@ -54,7 +54,7 @@ class CheckAuth
         if(empty($appinf)){
         	  return ['code'=>1,'msg'=>'发送的应用参数错误'];
         }
-		$mege=["appid"=>$data['appid'],"nonce"=>$data['noce']??'',"sign"=>$data['sign']??'',"timestamp"=>$data['timestamp']??''];
+		$mege=["appid"=>$data['appid'],"noce"=>$data['noce']??'',"sign"=>$data['sign']??'',"timestamp"=>$data['timestamp']??''];
         $value =array_merge($mege,$param);
         $Sign=new Sign($appinf['app_id'],$appinf['app_key']);
         $result =$Sign->verifySign($value);