Better take a picture, otherwise it is still difficult to judge, I think of a kind of, you see is not:
The thorn bean (scientific name: Ulex europaeus Linn.) is a legume, thorn bean genus of thorny shrubs plants, up to 150 cm high. Stem terete, much branched, shoots with three out of small leaves; no stipules; flowers axillary, racemes; bracts small, ovate-orbicular, bracteoles broadly ovate, calyx membranous, yellow-brown, corolla bright yellow, flag petals obovate, winged petals elliptic, keeled petals oblong, pods narrowly ovate, the seeds are ovate-orbicular, black-brown.
Native to Europe, commonly cultivated in China.