update admin

h888
Wayne Hsu 3 years ago
parent a4b53deb87
commit 73d2f76ec3

@ -29,7 +29,7 @@ class Order extends ApiController
//檢查優惠券 //檢查優惠券
$update_bonus = false; $update_bonus = false;
if(strlen($data['bonus_sn']) == 10){ if(isset($data['bonus_sn']) && strlen($data['bonus_sn']) == 10){
$bonus = Db::name('bonus') $bonus = Db::name('bonus')
->where('bonus_sn', $data['bonus_sn']) ->where('bonus_sn', $data['bonus_sn'])
->find(); ->find();

Loading…
Cancel
Save