🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
* 解析批量传入参 ~~~ $logic = json_decode($logic,1); ~~~ * 轮询重组事务语句 ~~~ $step = []; foreach ($logic as $value) { extract($value); $field = []; $field['field'] = $field; $where = []; $where[] = 'id="'.$id.'"'; $step[] = $D_P->edit(sbh_table,$field,$where,['echo'=>1]); } ~~~ * 固定用法,执行事务语句 ~~~ empty($step) ? $U_P->back($json, '暂无批处理动作['.__LINE__.']') : NULL; $back = $D_P->shiwu($step); empty($back['succeed']) ? $U_P->back($json, '数据处理失败['.__LINE__.']') : NULL; ~~~