|
@@ -277,7 +277,7 @@ class Sale extends Base
|
|
|
if ($datainfo > 0) {
|
|
|
$taxInfo = OrderTax::SpuCat($spuCode);
|
|
|
if (!empty($taxInfo)) {
|
|
|
- OrderTax::saveAll(array_map(function ($item)use($orderCode){
|
|
|
+ (new \app\admin\model\OrderTax)->saveAll(array_map(function ($item)use($orderCode){
|
|
|
$temp=[];
|
|
|
$temp['code']=$orderCode;
|
|
|
$temp['spuCode']=$item['spuCode'];
|
|
@@ -591,7 +591,7 @@ class Sale extends Base
|
|
|
if ($up) {
|
|
|
$taxInfo = OrderTax::SpuCat($data['spuCode'],1,1);
|
|
|
if (!empty($taxInfo)) {
|
|
|
- OrderTax::saveAll(array_map(function ($item)use($cgdCode){
|
|
|
+ (new \app\admin\model\OrderTax)->saveAll(array_map(function ($item)use($cgdCode){
|
|
|
$temp=[];
|
|
|
$temp['code']=$cgdCode;
|
|
|
$temp['spuCode']=$item['spuCode'];
|
|
@@ -1232,7 +1232,7 @@ class Sale extends Base
|
|
|
}
|
|
|
$taxInfo = OrderTax::SpuCat($spuCode);
|
|
|
if (!empty($taxInfo)) {
|
|
|
- OrderTax::saveAll(array_map(function ($item)use($orderCode){
|
|
|
+ (new \app\admin\model\OrderTax)->saveAll(array_map(function ($item)use($orderCode){
|
|
|
$temp=[];
|
|
|
$temp['code']=$orderCode;
|
|
|
$temp['spuCode']=$item['spuCode'];
|
|
@@ -1829,7 +1829,7 @@ class Sale extends Base
|
|
|
}
|
|
|
$taxInfo = OrderTax::SpuCat( $data['spuCode']);
|
|
|
if (!empty($taxInfo)) {
|
|
|
- OrderTax::saveAll(array_map(function ($item)use($orderCode){
|
|
|
+ (new \app\admin\model\OrderTax)->saveAll(array_map(function ($item)use($orderCode){
|
|
|
$temp=[];
|
|
|
$temp['code']=$orderCode;
|
|
|
$temp['spuCode']=$item['spuCode'];
|
|
@@ -2113,7 +2113,7 @@ class Sale extends Base
|
|
|
];
|
|
|
$taxInfo = OrderTax::SpuCat( $data['spuCode']);
|
|
|
if (!empty($taxInfo)) {
|
|
|
- OrderTax::saveAll(array_map(function ($item)use($orderCode){
|
|
|
+ (new \app\admin\model\OrderTax)->saveAll(array_map(function ($item)use($orderCode){
|
|
|
$temp=[];
|
|
|
$temp['code']=$orderCode;
|
|
|
$temp['spuCode']=$item['spuCode'];
|