mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-22 20:55:38 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前端店铺绑定关系处理
|
||||
* @author ome
|
||||
@@ -198,9 +197,8 @@ class ome_rpc_response_shop extends ome_rpc_response
|
||||
$data = $_POST;
|
||||
$certi_ac = $data['certi_ac'];
|
||||
unset($data['certi_ac']);
|
||||
$sign = base_certificate::getCertiAC($data, array(
|
||||
'exclude_keys' => array('certi_ac', 'certificate_id')
|
||||
));
|
||||
$token = base_certificate::get('token');
|
||||
$sign = $this->genSign($data, $token);
|
||||
if ($certi_ac != $sign) {
|
||||
echo json_encode(array('res' => 'fail', 'msg' => '签名错误'));
|
||||
exit;
|
||||
@@ -222,6 +220,19 @@ class ome_rpc_response_shop extends ome_rpc_response
|
||||
exit;
|
||||
}
|
||||
|
||||
public function genSign($params, $token)
|
||||
{
|
||||
ksort($params);
|
||||
$str = '';
|
||||
foreach ($params as $key => $value) {
|
||||
|
||||
if ($key != 'certi_ac' && $key != 'certificate_id') {
|
||||
$str .= $value;
|
||||
}
|
||||
}
|
||||
$signString = md5($str . $token);
|
||||
return $signString;
|
||||
}
|
||||
|
||||
private function _save_ipay_channel($shop_id, $node_id, $node_type, $status)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user