@qq286531097
2017-11-10T12:44:23.000000Z
字数 348
阅读 209
vans
kernel::single('b2c_fcode_code')->checkfcode($data);
传入数据
$data = array(
'tel' => '18621709876',
'fcode' => 'F6543'
);
tip:fcode字段为4位,接口那边有判断,但是最后调用前也有对应的判断
输出数据
1.抛出异常
10001 请传入对应的手机号
10002 请传入对应的F码
10003 F码数据不合法
20001 F码已经使用
20002 无效的F码
验证通过
true
kernel::single('b2c_fcode_code')->offCode($data);
传入数据
$data = array(
'tel' => '18621709876',
'fcode' => 'F6543'
);