afa hai 7 meses
pai
achega
2966969e12

+ 1 - 1
application/api/controller/Synthesis.php

@@ -79,7 +79,7 @@ class Synthesis extends Api
    
         $time = time();
         if ($synthesis->start_time > $time || $synthesis->end_time < $time)$this->error(__("合成活动已结束"));
-        if ($synthesis->num + $num > $synthesis->stock)$this->error(__("库存不足"));
+        if ($synthesis->num + $num > $synthesis->stock)$this->error(__("库存不足"));
 
         Db::startTrans();
         try {

+ 1 - 0
application/api/lang/en.php

@@ -44,5 +44,6 @@ return [
     '合成活动不存在'                                                              => 'Synthesis activity does not exist',                                                                
     '合成活动已结束'                                                              => 'The synthesis activity has ended',
     '材料不足'                                                                    => 'Materials are insufficient',
+    '库存不足'                                                                    => 'Insufficient inventory',  
 
 ]; 

+ 1 - 0
application/api/lang/zh-cn.php

@@ -135,6 +135,7 @@ return [
     '合成活动不存在'                                                              => '合成活动不存在',                                                                
     '合成活动已结束'                                                              => '合成活动已结束',
     '材料不足'                                                                    => '材料不足',
+    '库存不足'                                                                    => '库存不足',                                                        
 
 
 ];