Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果名为 Trattativa_riservata=SI 的字段,我需要将 XMl 中的价格字段设置为 null 或 0。如果为 NO,则保留 XML 中的价格值。有人可以帮助我吗?
用这个简单的 PHP 代码找到了一个解决方案:
function private_negotiation($negotiation, $price){ if ($negotiation == 'SI') { $price = 0; } return $price; }
谢谢大家