|
|
|
@ -135,7 +135,7 @@ class User extends ApiController
|
|
|
|
$user_info = $user;
|
|
|
|
$user_info = $user;
|
|
|
|
|
|
|
|
|
|
|
|
//判斷order_sn是否執行過,沒有的話就不處理
|
|
|
|
//判斷order_sn是否執行過,沒有的話就不處理
|
|
|
|
if ($user_info['note'] != input('order_sn')) {
|
|
|
|
if (trim($user_info['note']) != trim(input('order_sn'))) {
|
|
|
|
return $this->Error('未自動新增過', 501);
|
|
|
|
return $this->Error('未自動新增過', 501);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ class User extends ApiController
|
|
|
|
->where('user_id', $params['user_id'])
|
|
|
|
->where('user_id', $params['user_id'])
|
|
|
|
->update($update_data);
|
|
|
|
->update($update_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Db::getLastSql();
|
|
|
|
}catch(\Exception $e){
|
|
|
|
}catch(\Exception $e){
|
|
|
|
return $this->Error($e->getMessage(), 500, '新增失敗');
|
|
|
|
return $this->Error($e->getMessage(), 500, '新增失敗');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|