|
@@ -794,7 +794,15 @@ class Goodup extends Base
|
|
|
$jsp = json_encode($datas,JSON_UNESCAPED_UNICODE);
|
|
|
if($up){
|
|
|
ChangeLog::logAdd(3,$datas['spuCode'],$jsp,$json,$this->post['token'],$this->post);
|
|
|
- $online = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->save(["is_online"=>0,"status"=>0,"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
+ $online = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->find();
|
|
|
+ if($online){
|
|
|
+ $onup = Db::name("good_platform")->where(["spuCode"=>$supcode,"is_del"=>0])->save
|
|
|
+ (["exam_status"=>2,"updatetime"=>date("Y-m-d H:i:s")]);
|
|
|
+ if($onup==false){
|
|
|
+ Db::rollback();
|
|
|
+ return app_show(1004,"商品规成本修改失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
if($good_ladder!=="" && !empty($good_ladder)){
|
|
|
|
|
|
$user =GetUserInfo($this->post['token']);
|