[关闭]
@qq286531097 2017-11-10T12:44:23.000000Z 字数 348 阅读 209

F码验证接口

vans


F码验证接口

  1. kernel::single('b2c_fcode_code')->checkfcode($data);

传入数据

  1. $data = array(
  2. 'tel' => '18621709876',
  3. 'fcode' => 'F6543'
  4. );

tip:fcode字段为4位,接口那边有判断,但是最后调用前也有对应的判断
输出数据

  1. 1.抛出异常
  2. 10001 请传入对应的手机号
  3. 10002 请传入对应的F
  4. 10003 F码数据不合法
  5. 20001 F码已经使用
  6. 20002 无效的F
  7. 验证通过
  8. true

F码核销接口

  1. kernel::single('b2c_fcode_code')->offCode($data);

传入数据

  1. $data = array(
  2. 'tel' => '18621709876',
  3. 'fcode' => 'F6543'
  4. );
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注