public function checkStatus(){
$this->PostOffer->id = $post_offer_id;
if($this->PostOffer->save(array(
'payment_status' => OrderStatus::PaymentCompleted ))) {
$this->Order->post_offer_id = $post_offer_id;
if($this->Order->saveField(array(
'payment_status' => OrderStatus::SellerPaymentComplete))) {
return "true";
}
}
}
当我使用此代码PostOffer时 - 在DB上更新了payment_status但是 订单 - payment_status未在DB中更新。