Commit 9c1d7c23 by liyijie

fix: try_method use payload instead of record

parent e78afef0
......@@ -253,7 +253,7 @@ module TalltyImportExport
def try_method(payload, method, prefix: nil)
prefix_arr = prefix.to_s.split(/\./)
arr = method.split('.').flat_map { |m| m.include?('[') ? m.split(/\[\s*|\s*\]/).reject(&:empty?) : m }
try_chain record, prefix_arr + arr
try_chain payload, prefix_arr + arr
end
# 根据数据类型 attr_type 进行数据的格式化
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment